malbot.service 379 B

1234567891011121314151617181920
  1. [Unit]
  2. Description=MyAnimeList Discord Bot
  3. After=network.target nss-lookup.target
  4. [Service]
  5. Type=simple
  6. WorkingDirectory=/opt/malbot/
  7. ExecStart=/usr/local/bin/python3.7 /opt/malbot/myanimebot.py
  8. ExecStop=/bin/kill -15 $MAINPID
  9. Restart=on-failure
  10. User=malbot
  11. Group=malbot
  12. StandardOutput=syslog
  13. StandardError=syslog
  14. SyslogIdentifier=malbot
  15. [Install]
  16. WantedBy=multi-user.target