malbot.service 281 B

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