This commit is contained in:
parent
f863aef62d
commit
0ebf053a91
@ -15,3 +15,7 @@ steps:
|
|||||||
- name: install
|
- name: install
|
||||||
commands:
|
commands:
|
||||||
- make install
|
- make install
|
||||||
|
|
||||||
|
- name: restart
|
||||||
|
commands:
|
||||||
|
- systemctl craft-bot restart
|
||||||
|
12
craft-bot.service
Normal file
12
craft-bot.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=the telegram bot for minecraft
|
||||||
|
After=network.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/craft-bot/craft-bot -c /etc/craft-bot/craft-bot.cfg
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
2
makefile
2
makefile
@ -10,3 +10,5 @@ build/craft-bot: *.go
|
|||||||
install: build
|
install: build
|
||||||
mkdir -p /usr/local/craft-bot
|
mkdir -p /usr/local/craft-bot
|
||||||
install build/craft-bot /usr/local/craft-bot/
|
install build/craft-bot /usr/local/craft-bot/
|
||||||
|
install craft-bot.service /etc/systemd/system/craft-bot.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user