diff options
author | Ben de Groot <yngwin@gentoo.org> | 2012-08-25 12:37:43 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2012-08-25 12:37:43 +0000 |
commit | 067e70d1ae511fe7190f6296d579f2c2516beba5 (patch) | |
tree | d23ee251fcf90f1b06eea9b1787c73a07b8ff7d9 /media-tv/tvheadend/files | |
parent | Drop faulty -r10, add fixes for crash (bug #432344) and hang (bug #432562) in... (diff) | |
download | gentoo-2-067e70d1ae511fe7190f6296d579f2c2516beba5.tar.gz gentoo-2-067e70d1ae511fe7190f6296d579f2c2516beba5.tar.bz2 gentoo-2-067e70d1ae511fe7190f6296d579f2c2516beba5.zip |
Initial commit. Ebuild developed by users in bug #288022. Will be proxy-maintained by Leho Kraav.
(Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
Diffstat (limited to 'media-tv/tvheadend/files')
-rw-r--r-- | media-tv/tvheadend/files/tvheadend.confd | 14 | ||||
-rw-r--r-- | media-tv/tvheadend/files/tvheadend.initd | 19 |
2 files changed, 33 insertions, 0 deletions
diff --git a/media-tv/tvheadend/files/tvheadend.confd b/media-tv/tvheadend/files/tvheadend.confd new file mode 100644 index 000000000000..8be4a5dadce9 --- /dev/null +++ b/media-tv/tvheadend/files/tvheadend.confd @@ -0,0 +1,14 @@ +# /etc/conf.d/tvheadend: config file for /etc/init.d/tvheadend +# See the tvheadend(1) manpage for more info. + +# Run Tvheadend as this user. +TVHEADEND_USER="tvheadend" + +# Run Tvheadend as this group. +TVHEADEND_GROUP="video" + +# Path to Tvheadend config. +TVHEADEND_CONFIG="/etc/tvheadend" + +# Other options you want to pass to Tvheadend. +TVHEADEND_OPTIONS="" diff --git a/media-tv/tvheadend/files/tvheadend.initd b/media-tv/tvheadend/files/tvheadend.initd new file mode 100644 index 000000000000..58ded5e5f93c --- /dev/null +++ b/media-tv/tvheadend/files/tvheadend.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting Tvheadend" + start-stop-daemon --start --quiet --exec /usr/bin/tvheadend \ + -- -f -C -u ${TVHEADEND_USER} -g ${TVHEADEND_GROUP} \ + -c ${TVHEADEND_CONFIG} ${TVHEADEND_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping Tvheadend" + start-stop-daemon --stop --quiet --pidfile /var/run/tvheadend.pid + eend $? +} |