migrate init.d to systemd service for auto restart

april-welcomebot
Quentin Gibeaux 4 years ago committed by root
parent 5f0d1c435b
commit 89663f991b
  1. 0
      init.d.deprecated/welcomebot
  2. 15
      welcomebot.service

@ -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…
Cancel
Save