diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2018-01-26 12:02:47 -0500 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2018-01-26 12:02:47 -0500 |
commit | 935b1fda4c552a223ea23a8bc405571c0743c375 (patch) | |
tree | 8c154885b31b7d5af76cfd5ace56b09f0e331e8c /www-apps/rt/files | |
parent | www-apps/rt: Bump to 4.4.2 (diff) | |
download | gentoo-935b1fda4c552a223ea23a8bc405571c0743c375.tar.gz gentoo-935b1fda4c552a223ea23a8bc405571c0743c375.tar.bz2 gentoo-935b1fda4c552a223ea23a8bc405571c0743c375.zip |
www-apps/rt: Cleanup old and insecure
Bug: https://bugs.gentoo.org/603328
Bug: https://bugs.gentoo.org/626196
Package-Manager: Portage-2.3.19, Repoman-2.3.6
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 $? -} |