www-apps/tt-rss/files/tinyrss-update.initd
author Frédéric Barthéléry <frederic.barthelery.ext@parrot.com>
Wed, 09 Nov 2011 09:39:27 +0100
changeset 25 8b435e1f15e0
parent 5 42fc41c83e9b
permissions -rwxr-xr-x
Add custom ebuild with -X for android-sdk-update-manager-15

#!/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 $?

}