Re: Solaris 10, svcadm and demons

From: Frank Cusack (fcusack_at_fcusack.com)
Date: 07/30/05


Date: Fri, 29 Jul 2005 17:27:34 -0700

On Fri, 29 Jul 2005 07:18:59 +0200 MichalR <mrot@neostrada.pl> wrote:
>> svcadm misfeature closes your telnet session. Your daemon goes away
>> because you probably haven't correctly daemonized? In another telnet
>> or login session, attach to the daemon with gdb or mdb and see what
>> signal it gets. It'd be interesting to see ps -j -p <pid> for your
>> telnet shell and the daemon.
>>
>
> Demon is demonized correctly. After starting demon I see that it
> parent process is /sbin/init and it is NOT attached to any terminal.

That is necessary but not sufficient to be a proper daemon. Why
don't you show us the ps output I requested?

-frank


Quantcast