Skip to content

Instantly share code, notes, and snippets.

@fwenzel
fwenzel / django-servers.sh
Created January 25, 2010 09:56
A Debian init script to run one or more FCGI-based Django applications.
#! /bin/sh
### BEGIN INIT INFO
# Provides: FastCGI servers for Django
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: Start FastCGI servers with Django.
# Description: Django, in order to operate with FastCGI, must be started
# in a very specific way with manage.py. This must be done