www-apps/tt-rss/files/tinyrss-update.initd
author Da Risk <da_risk@elyzion.net>
Thu, 23 Sep 2010 11:59:07 +0200
changeset 5 42fc41c83e9b
permissions -rwxr-xr-x
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     1
#!/sbin/runscript
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     2
# Copyright 1999-2010 Gentoo Foundation
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     3
# Distributed under the terms of the GNU General Public License v2
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     4
# $Header: $
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     5
PIDFILE="/var/run/tinyrss.pid"
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     6
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     7
depend() {
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     8
	need net
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
     9
}
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    10
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    11
start() {
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    12
	ebegin "Starting tinyrss update daemon"
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    13
	start-stop-daemon --start --make-pidfile --background -c apache --pidfile "$PIDFILE" --chdir "$TTRSS_PATH" --exec /usr/bin/php -- \
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    14
	"$TTRSS_PATH/$TTRSS_DAEMON"
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    15
	eend $?
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    16
}
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    17
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    18
stop() {
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    19
	ebegin "Stopping tinyrss update daemon"
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    20
	start-stop-daemon --quiet --stop --pidfile $PIDFILE
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    21
	eend $?
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    22
42fc41c83e9b Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff changeset
    23
}