On Tue, Jan 6, 2009 at 12:38 PM, Nicolas Williams <Nicolas.Williams at sun.com> wrote:
> On Tue, Jan 06, 2009 at 05:02:26PM +0100, Casper.Dik at Sun.COM wrote: >> And this doesn't work: >> >> ( # note: parenthesis >> your script here >> >> ) & # note: another one and & Wait. What? Are you asking me if if the previous doesn't work? Or telling me that it won't work? > In the event that you should need the parent process to wait for the > child to be ready you could use a named pipe to pass an "I'm ready" > message from the child to the parent: Oye, simplicity. The script is checking something for the main apps; it needs to run all the time, thus, it must be not-transient because I would like SMF to restart it if it dies for whatever reason; stupid admin, sudden suicidal tendencies in lonely scripts. But, there are valid exit conditions. In these cases I would like to set the exit code so that the service goes to maintenance, and despite that it's a regular "all processes have exited", SMF should not attemp to restart. Is this possible? I can make a wrapper shell kick the process off, it does not need to trap anything from the child, I don't think. CT