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?
_______________________________________________
smf-discuss mailing list
[email protected]

Reply via email to