migrate init.d to systemd service for auto restart
This commit is contained in:
parent
5f0d1c435b
commit
89663f991b
15
welcomebot.service
Normal file
15
welcomebot.service
Normal 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
|
Loading…
Reference in New Issue
Block a user