rpicontrol/rpicontrol.service

24 lines
413 B
SYSTEMD
Raw Normal View History

2022-12-16 22:27:24 +00:00
[Unit]
Description=RPI MQTT Control Service
After=network.target
[Service]
Type=simple
User=root
Group=root
Restart=on-failure
RestartSec=10
startLimitIntervalSec=60
WorkingDirectory=/usr/bin
ExecStart=/usr/bin/rpicontrol
# make sure log directory exists and owned by syslog
PermissionsStartOnly=true
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rpicontrol
[Install]
WantedBy=multi-user.target