helper: remove unneeded sudo
continuous-integration/drone/push Build is passing Details

master
pictuga 2021-12-25 22:00:22 +00:00
parent e7578e859a
commit ee514e2da3
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ elif [ -z "$1" ] || [ "$@" = "run" ]; then
gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - morss gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - morss
elif [ "$@" = "reload" ]; then elif [ "$@" = "reload" ]; then
pid=$(sudo pidof 'gunicorn: master [morss]') pid=$(pidof 'gunicorn: master [morss]')
kill -s USR2 $pid kill -s USR2 $pid
kill -s WINCH $pid kill -s WINCH $pid
kill -s TERM $pid kill -s TERM $pid