On Dec 14, 2007 8:45 AM, Mike Gerdts <mgerdts at gmail.com> wrote:
> If your master daemon is a shell script, use ctrun(1) when starting
> the child.  If your master is written in C, you either want to use
> system(3C) to start the child or muddle your way through
> libcontract(3LIB).

This is the last time that I reply to my own post.  I promise.

My fuzzy memory is coming back to me.  I fixed this for zoneadmd.

6431807 zoneadmd should daemonize itself into a new contract

Here you can see the changes required.

http://cvs.opensolaris.org/source/diff/onnv/onnv-gate/usr/src/cmd/zoneadmd/zoneadmd.c?r1=2303&r2=2382&format=s&full=1#0

-- 
Mike Gerdts
http://mgerdts.blogspot.com/

Reply via email to