adding service file for systemd

This commit is contained in:
georg.sinn-schirwitz
2025-09-07 16:42:25 +02:00
parent fbe4e2f487
commit 234c99f1a9

17
thc-webhook.service Normal file
View File

@@ -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