mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2026-02-03 11:20:56 +03:00
add deamon service
This commit is contained in:
11
scripts/mosgortrans.service
Normal file
11
scripts/mosgortrans.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=MosGorTrans bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
WorkingDirectory=/opt/mosgortrans
|
||||
ExecStart=scripts/start-bot.sh
|
||||
ExecStop=scripts/shutdown-bot.sh
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user