Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- LOGFILE=/home/chris/log/pdfsupply.log
- NUM_WORKERS=3
- # user/group to run as
- USER=chris
- GROUP=admin
- cd /home/chris/webapps/django/pdfsupply
- source ../bin/activate
- exec /home/chris/webapps/django/bin/gunicorn_django -w $NUM_WORKERS \
- --user=$USER --group=$GROUP --log-level=debug \
- --log-file=$LOGFILE 2>>$LOGFILE \
- --daemon
Add Comment
Please, Sign In to add comment