summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2017-02-14 20:16:04 +0100
committerDavid Seifert <soap@gentoo.org>2017-02-14 22:39:45 +0100
commit960375d3fa39a1d4e7e26a260ec0f246af407bbe (patch)
tree306c4265bb28aafc1fb1b94ebbc76042ca1c7691 /www-apps/tt-rss
parentwww-apps/postfixadmin: remove unused file (diff)
downloadgentoo-960375d3fa39a1d4e7e26a260ec0f246af407bbe.tar.gz
gentoo-960375d3fa39a1d4e7e26a260ec0f246af407bbe.tar.bz2
gentoo-960375d3fa39a1d4e7e26a260ec0f246af407bbe.zip
www-apps/tt-rss: remove unused init file
Closes: https://github.com/gentoo/gentoo/pull/3971
Diffstat (limited to 'www-apps/tt-rss')
-rw-r--r--www-apps/tt-rss/files/ttrssd.initd-r173
1 files changed, 0 insertions, 73 deletions
diff --git a/www-apps/tt-rss/files/ttrssd.initd-r1 b/www-apps/tt-rss/files/ttrssd.initd-r1
deleted file mode 100644
index bceb9ffce2dd..000000000000
--- a/www-apps/tt-rss/files/ttrssd.initd-r1
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- need logger net
- after postgres mysql
-}
-
-LOGFILE=${LOGFILE:-"/var/log/ttrssd.log"}
-TTRSSD_USER=${TTRSSD_USER:-"ttrssd"}
-TTRSSD_GROUP=${TTRSSD_GROUP:-"ttrssd"}
-INSTANCE_FOLDERS="cache lock feed-icons"
-
-checkconfig() {
- local instance dir
-
- # check instances
- if [ -z "${INSTANCE_DIRS}" ]; then
- eerror "There is no defined instance directory in /etc/conf.d/ttrssd"
- return 1
- fi
-
- # verify log file accessibility
- if [ ! -e "${LOGFILE}" ]; then
- touch "${LOGFILE}" || return 1
- fi
- chown "${TTRSSD_USER}":"${TTRSSD_GROUP}" "${LOGFILE}" || return 1
-
- # check instances for errors
- for instance in ${INSTANCE_DIRS}; do
- if [ ! -f "${instance}/update_daemon2.php" ]; then
- eerror "\"${instance}\" does not contain update_daemon2.php script."
- eerror "Please check your installation or the INSTANCE_DIRS variable."
- return 1
- fi
-
- # FIXME: This should be done by webapp-config during install
- for dir in ${INSTANCE_FOLDERS}; do
- if [ -d "${instance}/${dir}" ]; then
- chgrp -R "${TTRSSD_GROUP}" "${instance}/${dir}" || return 1
- chmod -R g+w "${instance}/${dir}" || return 1
- fi
- done
- done
-}
-
-start () {
- local instance
-
- checkconfig || return 1
-
- for instance in ${INSTANCE_DIRS}; do
- ebegin "Starting TT-RSS update daemon in \"${instance}\""
- start-stop-daemon --start --user "${TTRSSD_USER}":"${TTRSSD_GROUP}" --background \
- --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
- --exec /usr/bin/php -- -f "${instance}/update_daemon2.php"
- eend $?
- done
-}
-
-stop() {
- local instance
-
- for instance in ${INSTANCE_DIRS}; do
- ebegin "Stopping TT-RSS update daemon in \"${instance}\""
- start-stop-daemon --stop --retry 30 \
- --exec /usr/bin/php -- -f "${instance}/update_daemon2.php"
- eend $?
- rm -f ${instance}/lock/*.lock
- done
-}