summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/rt/files/rt.init.d')
-rw-r--r--www-apps/rt/files/rt.init.d39
1 files changed, 0 insertions, 39 deletions
diff --git a/www-apps/rt/files/rt.init.d b/www-apps/rt/files/rt.init.d
deleted file mode 100644
index eeaf79e4b4b7..000000000000
--- a/www-apps/rt/files/rt.init.d
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/files/rt.init.d,v 1.1 2006/01/26 21:10:33 rl03 Exp $
-
-depend() {
- use mysql postgresql lighttpd
-}
-
-start() {
- ebegin "Starting RT"
- rm -f ${FCGI_SOCKET_PATH}
- env -i PATH=$PATH FCGI_SOCKET_PATH=${FCGI_SOCKET_PATH}\
- /sbin/start-stop-daemon -o --quiet --start \
- --startas ${RTPATH}/bin/mason_handler.fcgi \
- --pidfile ${PIDFILE} -c ${RTUSER} -g ${RTGROUP} -b -d ${RTPATH}
- # mason_handler.fcgi doesn't bg itself, so have start-stop-demon do that
- # if you experience problems, delete the -b flag above
- # and check if you get any errors
-
- # make sure lighttpd can use the socket
- while true; do
- [[ -a ${FCGI_SOCKET_PATH} ]] && break
- sleep 1
- done
- chmod g+rwx ${FCGI_SOCKET_PATH}
- eend $?
-}
-
-stop() {
- ebegin "Stopping RT"
- /sbin/start-stop-daemon -o --quiet --stop --pidfile ${PIDFILE}
- eend $?
-}
-
-restart() {
- svc_stop
- svc_start
-}