lighttpd: Move webmail from stdout.nl to stdin.nl.
[matthijs/servers/drsnuggles.git] / etc / init.d / fastcgi
index 6882ff988e37628b8b26f0bf7d4f7fb8a0fef34c..77dcb0993c3ee39db910743a1cf90d2c7ea3d0a4 100755 (executable)
@@ -23,10 +23,12 @@ ROOT_DIR="/data/www"
 
  
 SITES=[
-#      ('stderr.nl',             ['php']),
+       ('stderr.nl',             ['php', ('trac', 'applications/trac/trac.fcgi')]),
 #      ('stdin.nl',              ['php']),
        ('stdout.nl',             ['php']),
-#      ('evolution-events.nl',   ['php']), #, ('xerxes', 'applications/xerxes/manage.py runfcgi'), ('wipi', 'applications/wipi/wipi.fcgi')]),
+       ('ninniach.nl',           ['php']),
+       ('blues-brothers.eu',     ['php']),
+       ('evolution-events.nl',   ['php', ('wipi', 'applications/wipi/wipi.fcgi'), ('hunternet', 'applications/lexnet/manage.py runfcgi')]), #, ('xerxes', 'applications/xerxes/manage.py runfcgi')]),
 #      ('stdio.flexvps.nl',      ['php']),
 #      ('foresightsecurity.nl',  ['php']),
 ]
@@ -39,7 +41,7 @@ APPLICATIONS={"php": "/usr/bin/php-cgi"}
 # Kill these procs before starting new ones. Only processes of these names that
 # are run by the sites in SITES are killed. This is a bit hackish, we should
 # really be using pidfiles...
-KILL_PROCS=['php-cgi', 'manage.py']
+KILL_PROCS=['php-cgi', 'manage.py', 'trac.fcgi', 'wipi.fcgi']
 
 ## ABSOLUTE path to the spawn-fcgi binary
 SPAWNFCGI="/usr/bin/spawn-fcgi"
@@ -75,6 +77,9 @@ for (site, apps) in SITES:
        site_dir   = os.path.join(ROOT_DIR, site)
        socket_dir = os.path.join(SOCKET_DIR, site_name)
 
+       # Pass the site dir to all fastcgi processes
+       os.environ['SITE_DIR'] = site_dir
+
        if not site_dir:
                raise Exception("Site dir does not exist: %s" % (site_dir))