raspiblitz/home.admin/assets/background.service
2021-08-18 21:10:13 +02:00

29 lines
528 B
Desktop File

# Monitor the RaspiBlitz
# /etc/systemd/system/background.service
[Unit]
Description=RaspiBlitz Background Monitoring Service
Wants=network.target
After=network.target
# for use with sendmail alert (coming soon)
#OnFailure=systemd-sendmail@%n
[Service]
User=root
Group=root
Type=simple
ExecStart=/home/admin/_background.sh
Restart=always
TimeoutSec=10
RestartSec=10
StandardOutput=journal
# Hardening measures
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=multi-user.target