bot.service 285 B

1234567891011121314
  1. [Unit]
  2. Description=CodeCup bot service
  3. Wants=network.target
  4. After=syslog.target network-online.target
  5. [Service]
  6. Type=oneshot
  7. WorkingDirectory=/path/to/bot/directory
  8. ExecStart=/path/to/bot/directory/venv/bin/python3 /path/to/bot/directory/app.py
  9. [Install]
  10. WantedBy=multi-user.target