diff -r af44598ccbe3 -r 42fc41c83e9b www-apps/tt-rss/files/tinyrss-update.initd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www-apps/tt-rss/files/tinyrss-update.initd Thu Sep 23 11:59:07 2010 +0200 @@ -0,0 +1,23 @@ +#!/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 $? + +}