Solution: Re: [svlug] Give an environment to a daemon called by init

Akbar Ahmed akbar_svlug at yahoo.com
Tue Apr 22 18:17:58 PDT 2003


--- Robert Hajime Lanning <lanning at lanning.cc> wrote:
> On Mon, 21 Apr 2003, Rick Schultz wrote:
> > On Mon, Apr 21, 2003 at 06:14:54PM -0700, Akbar
> Ahmed wrote:
> >
> > > However, all calls to system() fail when I start
> my
> > > daemon via my init script (during boot).

<snip>

> The other thing is to see if STDIN/STDOUT/STDERR are
> pointing
> somewhere.  

Hi Robert,

stdin/out/err where the source of the problem. 

What I did was change the line in my init script that
called my daemon from:

/path_to_daemon

to

su -l root -p -s /bin/sh -c "/path_to_daemon
1>/dev/tty8 &2>1"

Thanks,
Akbar

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com



More information about the svlug mailing list