diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-27 18:07:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-27 18:07:28 +0000 |
commit | 67f76a858f1ac826bd8a550d756d9ec6e340ed4f (patch) | |
tree | 45f4ada6be05bc180a14e017c9d5c6b58a0eec6e /www-apps/rt/files | |
parent | 38b7258d086dd5e263c3bbe3880c8c956676bc71 (diff) |
gentoo resync : 27.01.2018
Diffstat (limited to 'www-apps/rt/files')
-rw-r--r-- | www-apps/rt/files/rt.conf.d.2 | 10 | ||||
-rw-r--r-- | www-apps/rt/files/rt.init.d.2 | 50 |
2 files changed, 0 insertions, 60 deletions
diff --git a/www-apps/rt/files/rt.conf.d.2 b/www-apps/rt/files/rt.conf.d.2 deleted file mode 100644 index d5bc65394734..000000000000 --- a/www-apps/rt/files/rt.conf.d.2 +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# Config file for /etc/init.d/rt - -RTUSER=rt -RTGROUP=lighttpd - -# set RTPATH to rt's root -RTPATH=/var/www/localhost/@@PF@@ diff --git a/www-apps/rt/files/rt.init.d.2 b/www-apps/rt/files/rt.init.d.2 deleted file mode 100644 index 84e304efe17d..000000000000 --- a/www-apps/rt/files/rt.init.d.2 +++ /dev/null @@ -1,50 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - use mysql postgresql lighttpd -} - -FCGI_SOCKET_PATH=${RTPATH}/var/appSocket -PIDFILE=${RTPATH}/var/pid - -start() { - checkpath -d "${RTPATH}/var" -m 0755 -o "${RTUSER}:${RTGROUP}" - - ebegin "Starting RT" - rm -f ${FCGI_SOCKET_PATH} - start-stop-daemon --start \ - --exec ${RTPATH}/bin/mason_handler.fcgi \ - --pidfile ${PIDFILE} --user "${RTUSER}:${RTGROUP}" \ - --background --make-pidfile --chdir ${RTPATH} \ - --stdout "${RTPATH}/var/service.log" \ - --stderr "${RTPATH}/var/service.log" \ - --env "PATH=$PATH" --env "FCGI_SOCKET_PATH=${FCGI_SOCKET_PATH}" \ - --wait 1500 - - if [ "$?" != "0" ]; then - eerror "${SVCNAME} failed to start. Please see ${RTPATH}/var/service.log for the reason." - eend 1 - return 1 - fi - - # make sure lighttpd can use the socket - for i in {0..10}; do - [ -a ${FCGI_SOCKET_PATH} ] && break - sleep 1 - done - - if [ -a ${FCGI_SOCKET_PATH} ]; then - chmod g+rwx ${FCGI_SOCKET_PATH} - eend 0 - else - eend 1 - fi -} - -stop() { - ebegin "Stopping RT" - start-stop-daemon --stop --pidfile ${PIDFILE} - eend $? -} |