fermentord/build/debian/fermentord.service

28 lines
635 B
SYSTEMD
Raw 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]
ExecStart=/usr/local/bin/fermentord
ExecReload=/bin/kill -HUP $MAINPID
2022-03-11 19:47:08 +00:00
User=fermentor
Group=fermentor
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