Update service file to auto-restart via systemd
parent
7b85c46b24
commit
31c9bb261e
|
@ -12,7 +12,7 @@ ExecStart=/usr/local/bin/pipenv run python CherryPyApp.py
|
|||
#
|
||||
# These next lines are for auto-restart. See: man systemd.service
|
||||
Type=simple
|
||||
#PIDFile=/var/run/autocat/autocat3.pid
|
||||
PIDFile=/var/run/autocat/autocat3.pid
|
||||
RemainAfterExit=no
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
|
Loading…
Reference in New Issue