pyjob ru spawn file bin bash SITE pyjob source home web bin spawn sh t

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# pyjob.ru spawn file
#!/bin/bash
SITE="pyjob"
source /home/web/bin/spawn.sh
# trac spawn file
#!/bin/sh
SITE="pybb"
SOCKET_FILE="/var/run/www/pybb.sock"
THREADS="1"
WORKERS="1"
NOHUP="1"
COMMAND="superfcgi --workers $WORKERS --threads $THREADS --app trac_wsgi.app --socket $SOCKET_FILE --path /web/pybb.org"
source /home/web/bin/spawn.sh
# trac wsgi module
import os
os.environ['TRAC_ENV'] = '/web/pybb.org'
os.environ['PYTHON_EGG_CACHE'] = '/web/cache/trac/pybb.org'
import trac.web.main
app = trac.web.main.dispatch_request