daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Feb 17th, 2010 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. start on stopped rc RUNLEVEL=[2345]
  2. stop on runlevel [!2345]
  3.  
  4. pre-start script
  5.         cd /home/roy/domains/ek-truckrace.nl
  6.         if [ -e tmp/django.pid ] ; then
  7.                 kill `cat -- tmp/django.pid`
  8.                 rm -rf tmp/django.pid
  9.         fi
  10. end script
  11.  
  12. #replace exec for runuser
  13. 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
  14.  
  15. post-stop script
  16.         chmod g+w tmp/django.sock
  17. end script
RAW Paste Data
Top