stingray init.d # cat /etc/init.d/nxtvepg # Copyright 2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header depend() { need modules # v4l } checkconfig() { if [ ! -e /dev/v4l/vbi* ] ; then eerror "/dev/v4l/vbi* do not exist, please create it, or load the" eerror "correct v4l modules." return 1 fi } start() { checkconfig || return 1 ebegin "Starting nxtvepg in daemon mode" /usr/bin/nxtvepg -daemon >/dev/null 2>&1 eend $? } stop() { checkconfig || return 1 ebegin "Stopping nxtvepg" /usr/bin/nxtvepg -daemonstop >/dev/null 2>&1 eend $? } stingray init.d # Reproducible: Always Steps to Reproduce: I'm giving away copyright to the "usual" entity. Please adjust if neccessary. Given my limited CVS knowledge the $Header line might be wrong. The script does not care about setups with multiple cards. That's left to root's nxtvepg settings. I've no idea about the security issues involved in running the daemon as root. Anyway, the admin has to "rc-update add nxtvepg default"
Created attachment 31657 [details] rc-script I can't add attachments when reporting a bug?
what package is this for?
johannes, please paste your response to this bug -- the email you sent didn't tell me anything.
This is a proposed start script for for media-tv/nxtvepg in daemon mode.
The rc-script is nice, but as nxtvepg should not run with root-priviledges, we should not implement it. I tried to change it for user-mode, but therefore you need a user with a configfile and epg-db. Probably we should just wait, if the upstream-maintainer will change the daemon-mode in future. There is enough help in the man-page for the daemon-mode. I hope the media-tv-herd would not bother me if I set this bug to wontfix...