Add systemd service unit

This commit is contained in:
Søren Rasmussen 2022-03-06 00:40:13 +01:00
parent c3ecc197cb
commit a30879ca3f

16
fermentord.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=Fermentor daemon
After=network.target
ConditionPathExists=!/etc/fermentord_not_to_be_run
[Service]
ExecStart=/usr/local/bin/fermentord
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
TimeoutStopSec=15
Restart=always
RestartSec=300
Type=simple
[Install]
WantedBy=multi-user.target