cleaning a bit, including moving out some old docs, and renaming
[feisty_meow.git] / database / configuration / init.d / team_city_startup_example
diff --git a/database/configuration/init.d/team_city_startup_example b/database/configuration/init.d/team_city_startup_example
deleted file mode 100644 (file)
index 7047188..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-#
-# team_city_startup by Chris Koeritz
-#
-# /etc/init.d/team_city_startup
-#
-#uhhh... chkconfig: 2345 01 99
-# description: starts the Team City Agent as our buildor user.
-#
-### BEGIN INIT INFO
-# Provides: team_city_startup
-# Required-Start:
-# Required-Stop:
-# Default-Start: 3 4 5
-# Default-Stop: 0 1 2 6
-# Short-Description: Team City Agent initialization
-# Description: team city rc file. This rc script runs the agent as the
-#       buildor user.
-### END INIT INFO
-
-usage() {
-    echo "Usage: $0 {start|stop|status|kill}"
-}
-
-function teamcity_action()
-{
-  export JAVA_HOME=/usr/lib/jvm/java-6-sun
-  export HOME=/home/buildor
-  export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
-
-  # should become the buildor user and tell team city the proper action.
-  su -m -c "/home/buildor/teamcity_agent/bin/agent.sh $*" buildor
-}
-
-test -x ${PARSER} || exit 0 # by debian policy
-
-case "$1" in
-       start)
-               teamcity_action start
-               rc=$?
-               ;;
-       stop)
-               teamcity_action stop
-               rc=$?
-               ;;
-       kill)
-               teamcity_action stop kill
-               rc=$?
-               ;;
-       status)
-               procs_found=$(ps wuax | grep teamcity | grep -v grep)
-               if [ -z "$procs_found" ]; then
-                 echo "Team City Agent is not running."
-               else
-                 echo "Team City Agent is running."
-               fi
-               rc=$?
-               ;;
-       *)
-               usage
-               exit 1
-               ;;
-       esac
-exit $rc
-
-