autocat3.service changes

bibrec4static
autocat 2019-10-10 12:36:41 -04:00
parent 024429424f
commit 80754c50d9
1 changed files with 9 additions and 1 deletions

View File

@ -8,7 +8,15 @@ Type=simple
RuntimeDirectory=autocat
WorkingDirectory=/var/lib/autocat/autocat3
ExecStartPre=-/usr/bin/mkdir -p /var/run/autocat
ExecStart=/var/lib/autocat/.local/bin/pipenv run python CherryPyApp.py
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
RemainAfterExit=no
Restart=on-failure
RestartSec=5s
TimeStartSec=5s
[Install]
WantedBy=multi-user.target