Re: Daemon that starts other Daemons

2004-09-24 Thread John W. Krahn
Bob Showalter wrote: Errin Larsen wrote: Ok ... so with some research and playi^H^H^H^H^Htesting I've found the answer to what's really been bothering me. If you *really* want to understand the nuts and bolts of all this, Stevens' _Advanced Programming in the UNIX Environment_ is a must. http://www

Re: Daemon that starts other Daemons

2004-09-24 Thread Bob Showalter
Errin Larsen wrote: > Ok ... so with some research and playi^H^H^H^H^Htesting I've found the > answer to what's really been bothering me. If you *really* want to understand the nuts and bolts of all this, Stevens' _Advanced Programming in the UNIX Environment_ is a must. http://www.amazon.com/exe

Re: Daemon that starts other Daemons

2004-09-23 Thread Wiggins d Anconia
> On Thu, 23 Sep 2004, Errin Larsen wrote: > > > [] I was looking for a daemon that would run, start other servers, > > and that hang around monitoring them. > > In other words, you want something that works like Apache [1.x]. > > * To launch Apache, you run apachectl, a shell script. >

Re: Daemon that starts other Daemons

2004-09-23 Thread Chris Devers
On Thu, 23 Sep 2004, Errin Larsen wrote: > [] I was looking for a daemon that would run, start other servers, > and that hang around monitoring them. In other words, you want something that works like Apache [1.x]. * To launch Apache, you run apachectl, a shell script. * apachectl laun

Re: Daemon that starts other Daemons

2004-09-23 Thread Wiggins d Anconia
> Hi again, > > Ok ... so with some research and playi^H^H^H^H^Htesting I've found the > answer to what's really been bothering me. If I fork(), I get the PID > of the resulting child. However, if THAT child runs and external > command, how do I get the (now grand)child's PID. The answer I was

Daemon that starts other Daemons

2004-09-23 Thread Errin Larsen
-- Forwarded message -- From: Errin Larsen <[EMAIL PROTECTED]> Date: Thu, 23 Sep 2004 16:30:21 -0500 Subject: Re: Daemon that starts other Daemons To: Wiggins d Anconia <[EMAIL PROTECTED]> Hi again, Ok ... so with some research and playi^H^H^H^H^Htesting I've fo

Re: Daemon that starts other Daemons

2004-09-23 Thread Wiggins d Anconia
> On Thu, 23 Sep 2004 11:23:16 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote: > > Hi perl-people, > > <> > > > So, my question is, how do I implement this code WITHOUT the parent > > process dieing? > > > > --Errin > > > > I found that (at least on the Solaris OS that I'm working on) that the

Re: Daemon that starts other Daemons

2004-09-23 Thread Wiggins d Anconia
> Hi perl-people, > > I'm not sure if this is beginners stuff, but I'll post here 'cause > it's the only list I'm subscribed to at the moment. > A stretch, but there have been more complex topics discussed. This is pretty much a catch all and some of the experts will probably appreciate not answ

Re: Daemon that starts other Daemons

2004-09-23 Thread Errin Larsen
On Thu, 23 Sep 2004 11:23:16 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote: > Hi perl-people, <> > So, my question is, how do I implement this code WITHOUT the parent > process dieing? > > --Errin > I found that (at least on the Solaris OS that I'm working on) that the setsid function will set

Daemon that starts other Daemons

2004-09-23 Thread Errin Larsen
Hi perl-people, I'm not sure if this is beginners stuff, but I'll post here 'cause it's the only list I'm subscribed to at the moment. I'm writing a script that will daemonize itself, and then watch some processes. If one of those processes die, it will start it again. So, I've been reading the