migrate init.d to systemd service for auto restart

This commit is contained in:
Quentin Gibeaux 2018-11-08 18:02:15 +01:00 committed by root
parent 5f0d1c435b
commit 89663f991b
2 changed files with 15 additions and 0 deletions

15
welcomebot.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=APRIL IRC bot for april-accueil channel
After=network-online.target
[Service]
Type=simple
WorkingDirectory=/srv/welcomebot/git
ExecStart=/srv/welcomebot/git/bot.py
User=welcomebot
Group=welcomebot
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target