fermentord/build/debian/fermentord.service
Søren Rasmussen d36d239697
All checks were successful
continuous-integration/drone/push Build is passing
Add deb package
2022-05-02 22:02:13 +02:00

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