Füge Unterstützung für systemd hinzu, indem die systemd-Entwicklungslibraries in CMakeLists.txt und Installationsskripten für OpenSUSE und Ubuntu 22 integriert werden. Aktualisiere die yourpart-daemon.service-Datei für eine verbesserte Service-Verwaltung und implementiere die Benachrichtigung an systemd, wenn der Dienst bereit ist.

This commit is contained in:
Torsten Schulz (local)
2025-08-31 23:49:16 +02:00
committed by Torsten (PC)
parent 91420b9973
commit 8ba4566d23
5 changed files with 24 additions and 1 deletions

View File

@@ -5,12 +5,17 @@ After=network.target postgresql.service
Wants=postgresql.service
[Service]
Type=simple
Type=notify
User=yourpart
Group=yourpart
WorkingDirectory=/opt/yourpart
ExecStart=/usr/local/bin/yourpart-daemon
ExecStop=/bin/kill -TERM $MAINPID
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
KillSignal=SIGTERM
TimeoutStartSec=30
TimeoutStopSec=30
Restart=always
RestartSec=5
StandardOutput=journal