bot.service 366 B

123456789101112131415161718
  1. [Unit]
  2. Description=IRC bot
  3. Wants=network-online.target
  4. After=network.target network-online.target
  5. [Service]
  6. Type=forking
  7. PIDFile=/home/bot/profile/app.pid
  8. ExecStart=/home/bot/bot /home/bot/profile
  9. Restart=on-failure
  10. # to clear start limit counters: systemctl reset-failed bot
  11. StartLimitInterval=300s
  12. StartLimitBurst=3
  13. User=bot
  14. [Install]
  15. WantedBy=multi-user.target