File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ DJANGODIR=/edrop # Django project directory
55NUM_WORKERS=3 # Number of Gunicorn workers
66DJANGO_SETTINGS_MODULE=edrop.settings # Django settings module
77DJANGO_WSGI_MODULE=edrop.wsgi # WSGI module name
8+ URL=127.0.0.1 # URL to ping before starting cron job
9+ PORT=8000 # Port to ping before starting cron job
810
911echo " Starting $NAME as ` whoami` "
1012
@@ -15,7 +17,7 @@ export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
1517export PYTHONPATH=$DJANGODIR :$PYTHONPATH
1618mkdir -p /edrop/logs
1719
18- while ! nc -z 127.0.0.1 8000 ; do echo " eDrop not responding" ; sleep 5; done
20+ while ! nc -z $URL $PORT ; do echo " eDrop not responding" ; sleep 5; done
1921echo " eDrop has started successfully"
2022
2123# start the cron job
You can’t perform that action at this time.
0 commit comments