34 lines
694 B
Desktop File
34 lines
694 B
Desktop File
[Unit]
|
|
Description=VizionStreamer Camera Service with Watchdog
|
|
After=network.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=maik
|
|
Group=maik
|
|
WorkingDirectory=/home/maik/CLionProjects/vizionStreamer
|
|
ExecStart=/home/maik/CLionProjects/vizionStreamer/service/watchdog.sh
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
|
|
# Environment
|
|
Environment="PATH=/usr/local/bin:/usr/bin:/bin"
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=vizionstreamer
|
|
|
|
# Security settings (optional, kann bei Problemen auskommentiert werden)
|
|
# NoNewPrivileges=true
|
|
# PrivateTmp=true
|
|
|
|
# Graceful shutdown
|
|
TimeoutStopSec=30
|
|
KillMode=mixed
|
|
KillSignal=SIGTERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|