Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51401 - [patch] media-tv/nxtvepg rc-script for daemon mode
Summary: [patch] media-tv/nxtvepg rc-script for daemon mode
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 09:37 UTC by Johannes Niess
Modified: 2004-10-10 15:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
rc-script (nxtvepg,559 bytes, text/plain)
2004-05-18 09:40 UTC, Johannes Niess
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Niess 2004-05-18 09:37:14 UTC
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"
Comment 1 Johannes Niess 2004-05-18 09:40:38 UTC
Created attachment 31657 [details]
rc-script

I can't add attachments when reporting a bug?
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-23 12:24:59 UTC
what package is this for?
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-23 20:16:31 UTC
johannes, please paste your response to this bug -- the email you sent didn't tell me anything.
Comment 4 Johannes Niess 2004-05-24 07:58:34 UTC
This is a proposed start script for for media-tv/nxtvepg in daemon mode.
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2004-10-10 15:25:38 UTC
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...