mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Testing if this will fix bash exit before Gunicorn ran...
This commit is contained in:
parent
c57a5128e5
commit
0c37d93c01
10
src/wgd.sh
10
src/wgd.sh
@ -240,6 +240,16 @@ gunicorn_start () {
|
|||||||
sudo "$venv_gunicorn" --access-logfile log/access_"$d".log \
|
sudo "$venv_gunicorn" --access-logfile log/access_"$d".log \
|
||||||
--log-level 'debug' --capture-output \
|
--log-level 'debug' --capture-output \
|
||||||
--error-logfile log/error_"$d".log 'dashboard:app'
|
--error-logfile log/error_"$d".log 'dashboard:app'
|
||||||
|
|
||||||
|
checkPIDExist=0
|
||||||
|
while [ $checkPIDExist -eq 0 ]
|
||||||
|
do
|
||||||
|
if [ ! -f './gunicorn.pid' ]; then
|
||||||
|
checkPIDExist=1
|
||||||
|
fi
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
|
|
||||||
printf "[WGDashboard] Log files is under ./log\n"
|
printf "[WGDashboard] Log files is under ./log\n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user