I wrote this small shell script to start a gunicorn WSGI server for my django app. I'm running it on Ubuntu 12.04, and the script starts cleanly and runs like it's supposed to. The problem is that the script and gunicorn continues to run even after ctrl -C, i.e. it doesn't return to the prompt.
Why would this be, and how can I fix it?
#!/bin/bash NUM_WORKERS=3 cd /path/to/my/project source ../bin/activate gunicorn_django -w $NUM_WORKERS