helper: fix reload code
continuous-integration/drone/push Build is passing Details

master
pictuga 2022-01-19 13:44:15 +01:00
parent d05706e056
commit fdf9acd32b
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ daemon() {
} }
reload() { reload() {
pid=$(pidof 'gunicorn: master [morss]') # NB. requires python-setproctitle pid=$(pidof 'gunicorn: master [morss]' || true)
# NB. requires python-setproctitle
# `|| true` due to `set -e`
if [ -z "$pid" ]; then if [ -z "$pid" ]; then
# if gunicorn is not currently running # if gunicorn is not currently running