X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=database%2Fconfiguration%2Finit.d%2Ftrac_startup;fp=database%2Fconfiguration%2Finit.d%2Ftrac_startup;h=0000000000000000000000000000000000000000;hb=0f49452f40415efb2a62048397ed8514a1058bb7;hp=6e2b0142a820ec4fcae1066d69bd6112557dd26f;hpb=dfe6c3aedd3487a00acf94683163be7ed0baa6da;p=feisty_meow.git diff --git a/database/configuration/init.d/trac_startup b/database/configuration/init.d/trac_startup deleted file mode 100644 index 6e2b0142..00000000 --- a/database/configuration/init.d/trac_startup +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# -# tracd startup script by Chris Koeritz -# -# Note that this has been superceded by the (IMHO) much better approach of -# running tracd from apache using mod_python. -# -# /etc/init.d/trac_startup -# -#uhhh... chkconfig: 2345 04 11 -# description: starts the trac daemon as the www-data user. -# -### BEGIN INIT INFO -# Provides: trac_startup -# Required-Start: -# Required-Stop: -# Default-Start: 3 4 5 -# Default-Stop: 0 1 2 6 -# Short-Description: trac server initialization -# Description: Keeps the trac server running at our chosen port. -### END INIT INFO - -usage() { - echo "Usage: $0 {start|stop|status|kill}" -} - -function trac_action() -{ -# export JAVA_HOME=/usr/lib/jvm/java-6-sun -# export HOME=/home/buildor - export TRAC_PORT=24108 - export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin - - # should become www-data and start trac on our port. - su -m -c "tracd -d -b universalbuilds.com --port $TRAC_PORT /home/trac/ubuilds_project $*" www-data -} - -test -x ${PARSER} || exit 0 # by debian policy - -case "$1" in - start) - trac_action start - rc=$? - ;; - stop) - trac_action stop - rc=$? - ;; - kill) - trac_action stop kill - rc=$? - ;; - status) - procs_found=$(ps wuax | grep tracd | grep -v grep) - if [ -z "$procs_found" ]; then - echo "tracd is not running." - else - echo "tracd is running." - fi - rc=$? - ;; - *) - usage - exit 1 - ;; - esac -exit $rc - -