summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ratliff (jdratlif) <webmaster@technoplaza.net>2009-09-13 05:33:14 +0000
committerJohn Ratliff (jdratlif) <webmaster@technoplaza.net>2009-09-13 05:33:14 +0000
commit994a21dec0e27ca295270fd02d23de16f69d502a (patch)
tree4aa575f7c5e33d094d629e00b75a66079d6b46bc /media-tv/pytivo-wmcbrine/files/pyTivo.initd.sh
parentmedia-video/oggfwd: Updated to bzr snapshot revision 9. Careful: commandline ... (diff)
downloadsunrise-994a21dec0e27ca295270fd02d23de16f69d502a.tar.gz
sunrise-994a21dec0e27ca295270fd02d23de16f69d502a.tar.bz2
sunrise-994a21dec0e27ca295270fd02d23de16f69d502a.zip
media-tv/pytivo-wmcbrine: New Ebuild for bug 284737 thanks to _AxS_, desultory, ohnobinki, and Obeliks
svn path=/sunrise/; revision=9222
Diffstat (limited to 'media-tv/pytivo-wmcbrine/files/pyTivo.initd.sh')
-rw-r--r--media-tv/pytivo-wmcbrine/files/pyTivo.initd.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/media-tv/pytivo-wmcbrine/files/pyTivo.initd.sh b/media-tv/pytivo-wmcbrine/files/pyTivo.initd.sh
new file mode 100644
index 000000000..00aa9e905
--- /dev/null
+++ b/media-tv/pytivo-wmcbrine/files/pyTivo.initd.sh
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need localmount net
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting pyTivo"
+ start-stop-daemon --start --exec /usr/bin/pytivo \
+ --pidfile /var/run/pytivo.pid -m -N 19 -c pytivo:pytivo \
+ -- > /dev/null 2>&1 &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pyTivo"
+ start-stop-daemon --stop --exec /usr/bin/pytivo \
+ --pidfile /var/run/pytivo.pid
+ eend $?
+}
+
+restart() {
+ stop
+ sleep 2
+ start
+}
+