mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add deamon service
This commit is contained in:
parent
1af5dc2074
commit
a54a3809fd
@ -2,11 +2,10 @@
|
|||||||
Description=MosGorTrans bot
|
Description=MosGorTrans bot
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
WorkingDirectory=/opt/mosgortrans
|
WorkingDirectory=/opt/mosgortrans
|
||||||
ExecStart=scripts/start-bot.sh
|
ExecStart=/bin/bash /opt/mosgortrans/scripts/start-bot.sh
|
||||||
ExecStop=scripts/shutdown-bot.sh
|
ExecStop=/bin/bash /opt/mosgortrans/scripts/stop-bot.sh
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
|
|
||||||
echo "shutting down the bot"
|
echo "shutting down the bot"
|
||||||
bash killall python;
|
killall python;
|
||||||
bash killall firefox;
|
killall firefox;
|
Loading…
x
Reference in New Issue
Block a user