Jordan Brown (Sun) writes:
        [SNIP]
> 
> 
> Question for the real SMF experts (as opposed to people like me who know 
> enough to be dangerous :-) :  Is there a way to have a really simple 
> service, one that is assumed to be online and healthy as soon as it's 
> started and unhealthy if it ever exits? Something along the lines of 
> init's "respawn" mode.  Or would it work to have start="myprog& exit 0" 
> and stop=":kill"?
> 
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org

I think these paragraphs from svc.startd(1M) describe what you are looking
for:

     startd/duration        The  duration  property  defines  the
                            service's  model.  It  can  be set to
                            transient, child also known as "wait"
                            model   services,  or  contract  (the
                            default).

        ...


     "Wait" model services are restarted whenever the child  pro-
     cess associated with the service exits. A child process that
     exits is not considered an error for "wait" model  services,
     and repeated failures do not lead to a transition to mainte-
     nance state.

tom

Reply via email to