Skip to content

Instantly share code, notes, and snippets.

View splanquart's full-sized avatar

Stéphane Planquart splanquart

View GitHub Profile
@elmarx
elmarx / django_gunicorn
Created December 23, 2010 14:35
init.d script for Debian GNU/Linux to run multiple Django instances, each in it's own virtualenv, with gunicorn.
#! /bin/sh
### BEGIN INIT INFO
# Provides: gunicorn_django
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Gunicorn WSGI server for django
# Description: This script starts a gunicorn instance for each django instance
### END INIT INFO