Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e521534a85
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (15 sloc) 0.503 kb
#!/bin/bash
if [ ! -d "wouso" ]; then
echo "Please run in a wouso repo root"
exit
fi
LPATH=`pwd`
# create instance dir
su wouso -c "mkdir -p $LPATH/instance"
# stop existing
if [ -f "$LPATH/instance/fcgi.pid" ]; then
kill -9 `cat $LPATH/instance/fcgi.pid`
fi
# spawn new fcgi process
su wouso -c "cd wouso; python manage.py runfcgi --settings=settings maxchildren=10 maxspare=5 minspare=2 method=prefork socket=$LPATH/instance/fcgi.sock pidfile=$LPATH/instance/fcgi.pid umask=000"
echo "done"
Jump to Line
Something went wrong with that request. Please try again.