- start on stopped rc RUNLEVEL=[2345]
- stop on runlevel [!2345]
- pre-start script
- cd /home/roy/domains/ek-truckrace.nl
- if [ -e tmp/django.pid ] ; then
- kill `cat -- tmp/django.pid`
- rm -rf tmp/django.pid
- fi
- end script
- #replace exec for runuser
- exec python mysite/manage.py runfcgi method=prefork socket=/home/domains/ek-truckrace.nl/tmp/django.sock pidfile=/home/roy/domains/ek-truckrace.nl/tmp/django.pid daemonize=false
- post-stop script
- chmod g+w tmp/django.sock
- end script
SHARE
TWEET
Untitled
a guest
Feb 17th, 2010
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
