mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
fixed check gunicorn process
This commit is contained in:
parent
c9b792c370
commit
37b6161075
@ -43,7 +43,7 @@ install_wgd(){
|
|||||||
|
|
||||||
check_wgd_status(){
|
check_wgd_status(){
|
||||||
if [[ $environment == 'production' ]]; then
|
if [[ $environment == 'production' ]]; then
|
||||||
if ps aux | grep -v grep | cat ./gunicorn.pid > /dev/null; then
|
if ps aux | grep -v grep | grep $(cat ./gunicorn.pid) > /dev/null; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user