www-apps/tt-rss/files/tinyrss-update.initd
author Da Risk <da_risk@geekorum.com>
Tue, 27 Dec 2011 11:40:24 +0100
changeset 32 b63f6f600d51
parent 5 42fc41c83e9b
permissions -rwxr-xr-x
Add torrent-search-0.11.0

#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PIDFILE="/var/run/tinyrss.pid"

depend() {
	need net
}

start() {
	ebegin "Starting tinyrss update daemon"
	start-stop-daemon --start --make-pidfile --background -c apache --pidfile "$PIDFILE" --chdir "$TTRSS_PATH" --exec /usr/bin/php -- \
	"$TTRSS_PATH/$TTRSS_DAEMON"
	eend $?
}

stop() {
	ebegin "Stopping tinyrss update daemon"
	start-stop-daemon --quiet --stop --pidfile $PIDFILE
	eend $?

}