Add systemd service unit
This commit is contained in:
parent
c3ecc197cb
commit
a30879ca3f
1 changed files with 16 additions and 0 deletions
16
fermentord.service
Normal file
16
fermentord.service
Normal 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
|
Loading…
Reference in a new issue