Dateien nach "systemd-service" hochladen

This commit is contained in:
2026-02-05 11:53:06 +01:00
parent 4e17a87616
commit eeacfcd8a8

View File

@@ -0,0 +1,45 @@
[Unit]
Description=Livewire Audio Recorder (Hourly WAV, integrated folderkeeper)
Documentation=man:ffmpeg(1)
After=network-online.target time-sync.target local-fs.target
Wants=network-online.target time-sync.target
RequiresMountsFor=/loggerdata
[Service]
Type=simple
#Important we work in UTC
Environment=TZ=UTC
#User=logger
#Group=logger
ExecStart=/usr/local/bin/recorder.sh
# Restart-Strategy
Restart=always
RestartSec=5
StartLimitIntervalSec=60
StartLimitBurst=3
# Ressources
CPUQuota=25%
MemoryMax=1G
TasksMax=50
# Sandboxing
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
ReadWritePaths=/loggerdata
# Safe Stops
KillSignal=SIGINT
TimeoutStopSec=30
# Logging
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target