mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
fixed stop
This commit is contained in:
parent
e0bf648076
commit
c3eaaed43b
11
src/wgd.sh
11
src/wgd.sh
@ -42,12 +42,19 @@ install_wgd(){
|
||||
|
||||
|
||||
check_wgd_status(){
|
||||
if ps aux | grep '[p]ython3 '$app_name > /dev/null;
|
||||
then
|
||||
if [[ $environment == 'production' ]]; then
|
||||
if ps aux | grep -v grep | cat ./gunicorn.pid > /dev/null; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
if ps aux | grep -v grep |grep '[p]ython3 '$app_name > /dev/null; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
start_wgd () {
|
||||
|
Loading…
Reference in New Issue
Block a user