From d31d1400beb9dac091fe113829dfb3caf2dd5a12 Mon Sep 17 00:00:00 2001 From: Juan Manuel Parrilla Date: Wed, 28 May 2014 00:43:41 +0200 Subject: [PATCH] Updated script file --- rpm/scripts/shelfzilla | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpm/scripts/shelfzilla b/rpm/scripts/shelfzilla index de6a55f..df1042f 100644 --- a/rpm/scripts/shelfzilla +++ b/rpm/scripts/shelfzilla @@ -47,8 +47,7 @@ function validations() { function status(){ if [ "$1" == "start" ];then [ -z "`pidof nginx`" ] && service nginx start - #[ -z "`pidof python2.7`" ] && runuser -l shelfzilla -c "python2.7 ${BASE_PATH}/manage.py runfcgi host=${FCGI_IP} port=${FCGI_PORT}" - [ -z "`pidof python2.7`" ] && python2.7 ${BASE_PATH}/manage.py run_gunicorn -b ${FCGI_IP}:${FCGI_PORT} -e DJANGO_SETTINGS_MODULE=${MOD} -e APP_CONFIGFILE=${SZ_CONFIG_FILE} + [ -z "`pidof python2.7`" ] && gunicorn_django -b ${FCGI_IP}:${FCGI_PORT} -e DJANGO_SETTINGS_MODULE=${MOD} -e APP_CONFIGFILE=${SZ_CONFIG_FILE} --pythonpath=${BASE_PATH} shelfzilla.wsgi:application check $? "Gunicorn" elif [ "$1" == "stop" ];then