diff options
Diffstat (limited to 'media-tv/pytivo-wmcbrine/files/pytivo')
-rw-r--r-- | media-tv/pytivo-wmcbrine/files/pytivo | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/media-tv/pytivo-wmcbrine/files/pytivo b/media-tv/pytivo-wmcbrine/files/pytivo new file mode 100644 index 000000000..62a4070b5 --- /dev/null +++ b/media-tv/pytivo-wmcbrine/files/pytivo @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 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 -u pytivo:pytivo \ + -- > /tmp/pyTivo.log 2>&1 & + eend $? +} + +stop() { + ebegin "Stopping pyTivo" + start-stop-daemon --stop --exec /usr/bin/pytivo \ + --pidfile /var/run/pytivo.pid + eend $? +} |