for future reference. I was able to get this to work by changing this
line in $FREEVO_HOME/boot/freevo:

(cd /tmp && $DAEMON >> $FREEVO_LOG 2>&1 &)

to:

(/bin/su - root -c "/usr/local/bin/startfreevo" < /dev/tty3 >/dev/tty4
2>&1 &)

At least for me on debian the redirecting on the tty's was important.
Something I found on the linux gazette answer pages. not sure if I can
replace the /dev/tty4 with the FREEVO_LOG variable or not. startfreevo
is a script that just cd's to the freevo directory and executes freevo.

HTH somebody avoid similar frustrations,

Mike Ruelle
[EMAIL PROTECTED]


On Wed, 2003-03-05 at 16:51, Stephen Mathezer wrote:
> One thing that I found when trying to run stuff at startup was that I
> needed to 'su' to a user even if that user is root.  Init doesn't have a
> typical user environment.  su'ing to root to run my startup script did
> solve some issues that I had, although I can't remember what they were
> anymore.
> 
> -Steve
> 
> * Michael Ruelle <[EMAIL PROTECTED]> [030305 14:14]:
> > Ok first things first. My system is running in the framebuffer. No X is
> > being used. I am using the freevo start script from the boot directory
> > in the 1.3.2-pre2 full binary tarball.
> > 
> > basically if this script is called by init during startup runapp
> > segfaults. But if I run it from a logged in terminal it is fine. Also
> > shutdown and reboot are fine when they are linked into rc0.d and rc6.d.
> > 
> > I have tried editing the script to use openvt with a variety of options 
> > -l (having bash spawn a script to execute the start command), -u to see
> > if just ownership of the tty was messing it up. none of these approaches
> > worked from init during bootup (I also tried in the inittab also  but
> > that didn't work either)
> > 
> > I have double checked that I have copied boot_config /etc/freevo and it
> > is world readable.
> > 
> > Am I missing something? Would a strace or rebuilding runapp with debug
> > symbols be helpful? (I haven't found the core from the segfault so not
> > sure if ulimit is set during bootup)
> > 
> > -- 
> > Mike Ruelle
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
> > for complex code. Debugging C/C++ programs can leave you feeling lost and 
> > disoriented. TotalView can help you find your way. Available on major UNIX 
> > and Linux platforms. Try it free. www.etnus.com
> > _______________________________________________
> > Freevo-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/freevo-users
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
> for complex code. Debugging C/C++ programs can leave you feeling lost and 
> disoriented. TotalView can help you find your way. Available on major UNIX 
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> Freevo-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
-- 
Mike Ruelle
[EMAIL PROTECTED]




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to