Browse Source

migrate init.d to systemd service for auto restart

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

0
init.d/welcomebot → init.d.deprecated/welcomebot

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