aboutsummaryrefslogtreecommitdiffstats
path: root/www-apps/tt-rss/files/tt-rss.init.d
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-09-13 23:13:58 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2011-09-13 23:13:58 +0200
commite13bf217d2f0071062c6728640c13b4a4de8e3b8 (patch)
tree9b22fe1b8632c04b224096ebc2857a1fd18a66b9 /www-apps/tt-rss/files/tt-rss.init.d
parentccf91f5b973e5433ba94dd02de35600513a750de (diff)
downloadoverlay-e13bf217d2f0071062c6728640c13b4a4de8e3b8.tar.gz
overlay-e13bf217d2f0071062c6728640c13b4a4de8e3b8.tar.xz
overlay-e13bf217d2f0071062c6728640c13b4a4de8e3b8.zip
www/tt-rss: removed, its now in portage tree
Diffstat (limited to '')
-rwxr-xr-xwww-apps/tt-rss/files/tt-rss.init.d40
1 files changed, 0 insertions, 40 deletions
diff --git a/www-apps/tt-rss/files/tt-rss.init.d b/www-apps/tt-rss/files/tt-rss.init.d
deleted file mode 100755
index 6825d30..0000000
--- a/www-apps/tt-rss/files/tt-rss.init.d
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-depend() {
- use net mysql
-}
-
-FORKING=${FORKING:-"0"}
-PIDFILE=${PIDFILE:-"/var/run/tt-rss.pid"}
-PHP=${PHP:-"/usr/bin/php"}
-RUNAS=${RUNAS:-"nobody:nobody"}
-
-DAEMON_SCRIPT="update_daemon.php"
-if [ "$FORKING" != "0" ]; then
- DAEMON_SCRIPT="update_daemon2.php"
-fi
-
-checkconfig() {
- if [ ! -e "${TTRSS_PATH}/${DAEMON_SCRIPT}" ]; then
- eerror "Please set a correct path to the tt-rss installation in /etc/conf.d/tt-rss"
- return 1
- fi
-}
-
-start() {
- ebegin "Starting Tiny Tiny RSS update daemon"
- start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --chdir "${TTRSS_PATH}" \
- --user ${RUNAS} --exec ${PHP} --background --make-pidfile -- \
- "${TTRSS_PATH}/${DAEMON_SCRIPT}"
-
- eend $?
-}
-
-stop() {
- ebegin "Stopping Tiny Tiny RSS update daemon"
- start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --user ${RUNAS}
- eend $?
-}