add deamon service

This commit is contained in:
2022-08-08 16:58:57 +03:00
parent 1af5dc2074
commit a54a3809fd
2 changed files with 4 additions and 5 deletions

View File

@@ -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