Tony Nguyen writes:
> Nicolas Williams wrote:
> > On Tue, Mar 06, 2007 at 01:47:15PM -0700, Tom Whitten wrote:
> >   
> >> I don't see any reason why you couldn't do what you are proposing.  If you
> >> store the date/time of the first service start as a volatile property, it
> >> automatically get removed on reboot.  This would make it easy to tell if
> >> the service is starting for the first time.
> >>
> >> Without knowing more about your state information, I don't know whether or
> >> not volatile properties are appropriate for it.
> >>     
> >
> > I think they would be.  If not then we can always use the system
> > repository.
> >
> > What happens if svc.configd blows up and loses the running repository?
> >
> >   
> The repository is persistent and svc.configd handles read/write access 
> to it.  In the case svc.configd died, the repository would still be 
> around though services wouldn't be able to access their information.
> 
> -tony

Once startd restarts svc.configd, services should be able to access their
information.  Services should be written to recognize
SCF_ERROR_CONNECTION_BROKEN errors and retry if necessary.

tom

Reply via email to