* Renaud Manus <Renaud.Manus at Sun.COM> [2007-06-29 01:57]:
> -------- Original Message  --------
> Subject: Re:[smf-discuss] Prevent a service from trying to restart and 
> change        the online status
> From: Wee Yeh Tan <weeyeh at gmail.com>
> To: Stephen Hahn <sch at sun.com>
> Cc: Dan Fayette <fayette at rocketmail.com>, smf-discuss at opensolaris.org
> Date: Fri Jun 29 2007 03:54:59 GMT+0200 (CEST)
> 
> >On 6/29/07, Stephen Hahn <sch at sun.com> wrote:
> >>  Can you keep stunnel in the foreground?  If so, you might be able to
> >>  do something like
> >>
> >>  "stunnel ARGS || exit $SMF_EXIT_ERR_FATAL"
> >>
> >>  as the start method.
> >>
> >>  If not, you'll need to write a little method in shell that runs
> >>  stunnel, and then does a wait, and then exits with a status with
> >>  precise meaning to smf(5).
> >
> >If I understand this correctly, the method will cause the service to
> >never reach an online state and smf(5) will timeout the start script.
> 
> Not if the service's model is set to 'child'.
> 
> For 'contract' services, this will be addressed by the following RFE:
>       6450661 start method failures should be configurable
> 
> http://bugs.opensolaris.org/view_bug.do?bug_id=6450661

  Thanks, Renaud:  I think there's also a "fail once" RFE somewhere,
  that should be combined with this one...

  - Stephen

-- 
sch at sun.com  http://blogs.sun.com/sch/

Reply via email to