From 234c99f1a9ef7558777fb77723fc9f139779d5e1 Mon Sep 17 00:00:00 2001 From: "georg.sinn-schirwitz" Date: Sun, 7 Sep 2025 16:42:25 +0200 Subject: [PATCH] adding service file for systemd --- thc-webhook.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 thc-webhook.service 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