fermentord/debian/fermentord.service

27 lines
632 B
Desktop File

[Unit]
Description=Fermentor daemon
Wants=network-online.target local-fs.target
After=network-online.target local-fs.target
ConditionPathExists=!/etc/fermentord_not_to_be_run
ConditionKernelCommandLine=dtoverlay=w1-gpio,gpiopin=4,pullup=0
ConditionPathExists=/etc/fermentord.toml
[Service]
ExecStart=/usr/local/bin/fermentord
ExecReload=/bin/kill -HUP $MAINPID
User=fermentor
Group=fermentor
KillMode=process
TimeoutStopSec=15
Restart=always
RestartSec=300
Type=simple
RestrictRealtime=false
CPUSchedulingPriority=rr
CPUSchedulingPriority=49
IOSchedulingClass=realtime
IOSchedulingPriority=3
[Install]
WantedBy=multi-user.target