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
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
WorkingDirectory=/opt/mosgortrans
|
||||
ExecStart=scripts/start-bot.sh
|
||||
ExecStop=scripts/shutdown-bot.sh
|
||||
ExecStart=/bin/bash /opt/mosgortrans/scripts/start-bot.sh
|
||||
ExecStop=/bin/bash /opt/mosgortrans/scripts/stop-bot.sh
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -2,5 +2,5 @@
|
||||
|
||||
|
||||
echo "shutting down the bot"
|
||||
bash killall python;
|
||||
bash killall firefox;
|
||||
killall python;
|
||||
killall firefox;
|
Loading…
x
Reference in New Issue
Block a user