diff --git a/thc-webhook.service b/thc-webhook.service new file mode 100644 index 0000000..37371a7 --- /dev/null +++ b/thc-webhook.service @@ -0,0 +1,17 @@ +[Unit] +Description=Discord Webhook Notification Service +After=network.target + +[Service] +Type=simple +User=www-data +Group=www-data +WorkingDirectory=/srv/app/thc-time +ExecStart=/srv/app/thc-time/venv/bin/python /srv/app/thc-time/main.py +Restart=always +RestartSec=5 +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target