3 # tracd startup script by Chris Koeritz
5 # Note that this has been superceded by the (IMHO) much better approach of
6 # running tracd from apache using mod_python.
8 # /etc/init.d/trac_startup
10 #uhhh... chkconfig: 2345 04 11
11 # description: starts the trac daemon as the www-data user.
14 # Provides: trac_startup
17 # Default-Start: 3 4 5
18 # Default-Stop: 0 1 2 6
19 # Short-Description: trac server initialization
20 # Description: Keeps the trac server running at our chosen port.
24 echo "Usage: $0 {start|stop|status|kill}"
27 function trac_action()
29 # export JAVA_HOME=/usr/lib/jvm/java-6-sun
30 # export HOME=/home/buildor
31 export TRAC_PORT=24108
32 export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
34 # should become www-data and start trac on our port.
35 su -m -c "tracd -d -b universalbuilds.com --port $TRAC_PORT /home/trac/ubuilds_project $*" www-data
38 test -x ${PARSER} || exit 0 # by debian policy
54 procs_found=$(ps wuax | grep tracd | grep -v grep)
55 if [ -z "$procs_found" ]; then
56 echo "tracd is not running."
58 echo "tracd is running."