- #!/bin/sh
- pidfile=/dev/shm/xwbphotovote.pid
- host=0.0.0.0
- port=8701
- basedir=/home/wwwcgi/swyzxwb_photovote/
- if [ ! -f "$pidfile" ]; then
- cd $basedir
- python2.7 manage.py runfcgi host=$host port=$port pidfile=$pidfile outlog=${basedir}out.log errlog=${basedir}err.log
- echo -e "Starting swyzxwb_photovote CGI..............[\033[40;32mOK\033[0m]"
- else
- echo -e "Starting swyzxwb_photovote CGI..............[\033[40;31mFAILURE\033[0m]"
- echo "CGI Maybe Already Running... Please Try to Use Restart Operation."
- fi
|