On Sun, Apr 26, 2009 at 9:17 AM, Anders Eriksson <[email protected]> wrote:
>
> I'm a newbie around here...
>
> What's the recommended way to run freevo as non-root? If I understand things
> right, I'd like to run recordserver and webserver as non-root, but start/stop
> as any other daemon.
>
> I'm running the gentoo, and the packager seems to want UI and deamons to
> always
> start together and (hence) more or less interactively. I'd rather have the
> deamons up 24/7 and just the UI when needed.
You can try something like this. Change MYSTART to "/pathto/freevo
-- recordserver start" or
"/pathto/freevo -- recordserver --daemon" depending how new of freevo
you use and MYSTOP to
"/pathto/freevo -- recordserver stop" or "/pathto/freevo --
recordserver --stop".
note you don't need the quotes.
-------------------------->8--------------------
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need dvbstreamer
}
start() {
ebegin "Starting freevo device 0"
start-stop-daemon --user freevo --start --exec MYSTART
eend $?
}
stop() {
ebegin "Stopping freevo device 0"
start-stop-daemon --user freevo --start --exec MYSTOP
eend $?
}
-------------------------------->8------------------
Later
Jonathan
> /Anders
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>
--
ASUS m3a78 mothorboard
AMD Athlon64 X2 Dual Core Processor 6000+ 3.1Ghz
4 Gigabytes of memory
Gigabyte NVidia 9400gt Graphics adapter
Kworld ATSC 110 TV Capture Card
Kworld ATSC 115 TV Capture Card
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users