On 09/07/11 21:34, Jordan Brown wrote:
If a start method discovers a configuration error, it can send a service to
the maintenance state by returning SMF_ERR_EXIT_CONFIG.

However, what can/should a refresh method do when it discovers a
configuration error?

Perhaps it should call
      smf_maintain_instance(getenv("SMF_FMRI"), SMF_TEMPORARY|SMF_IMMEDIATE)
?

(and then wait to be killed?)

Or perhaps not SMF_IMMEDIATE, and then exit?

I don't recall that startd actually differentiates between start and refresh methods here; I'd expect you can just exit SMF_ERR_EXIT_CONFIG and let things happen.

Dave
_______________________________________________
smf-discuss mailing list
[email protected]

Reply via email to