fermentord/build/debian/fermentord.service

28 lines
619 B
SYSTEMD
Raw Permalink Normal View History

2022-03-05 23:40:13 +00:00
[Unit]
Description=Fermentor daemon
2022-03-11 19:47:08 +00:00
Wants=network-online.target local-fs.target
After=network-online.target local-fs.target
2022-03-05 23:40:13 +00:00
ConditionPathExists=!/etc/fermentord_not_to_be_run
2022-07-23 16:48:04 +00:00
#ConditionKernelCommandLine=dtoverlay=w1-gpio,gpiopin=4,pullup=0
2022-03-11 19:47:08 +00:00
ConditionPathExists=/etc/fermentord.toml
2022-03-05 23:40:13 +00:00
[Service]
2022-07-23 17:01:15 +00:00
ExecStart=/usr/bin/fermentord
2022-03-05 23:40:13 +00:00
ExecReload=/bin/kill -HUP $MAINPID
2022-07-24 08:01:28 +00:00
User=root
Group=root
2022-03-05 23:40:13 +00:00
KillMode=process
TimeoutStopSec=15
Restart=always
RestartSec=300
Type=simple
2022-03-10 07:22:59 +00:00
RestrictRealtime=false
2022-07-23 16:48:04 +00:00
#CPUSchedulingPriority=rr
#CPUSchedulingPriority=49
2022-03-10 07:22:59 +00:00
IOSchedulingClass=realtime
IOSchedulingPriority=3
2022-03-05 23:40:13 +00:00
2022-03-11 19:47:08 +00:00
2022-03-05 23:40:13 +00:00
[Install]
WantedBy=multi-user.target