diff --git a/src/wgd.sh b/src/wgd.sh index e948cde..8aac663 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -244,7 +244,7 @@ gunicorn_start () { checkPIDExist=0 while [ $checkPIDExist -eq 0 ] do - if [ ! -f './gunicorn.pid' ]; then + if test -f './gunicorn.pid'; then checkPIDExist=1 fi sleep 2