Greg Donkin writes:
> Hi,
> 
> In the Service Developer Introduction document Section 5 about ignoring fault
> s it says that you can "inform the restarter that certain errors are expected
> " and there follows an example xml fragment which appears in the cron manifes
> t:
> 
> <property_group name='startd' type='framework'>
>          <propval name='ignore_error' type='astring' value='core,signal' />
>       </property_group>
> 
> What are the values that startd recognises? That is, what value= options can 
> I put in here?

The property is documented in svc.startd(1M).  The accepted values are
"core", "signal", or "core,signal".  The manpage could probably be 
clearer on this (and the code could be fixed to be more obvious, and 
take multiple values of the property rather than just comma-separated 
ones).  I'll file some bugs later today.

> 
> And while I'm here, are there any guidelines/hints as to the "right" uses for
>  property groups and types? I must admit I'm a little confused as to exactly 
> what you do with them.

The property groups used by the framework are documented by the various 
framework manpages (e.g. svc.startd(1M)).  Otherwise, you can use 
property groups and properties to store service-specific information.  

If you do a "svcprop -p ttymon console-login" you'll see the ttymon 
property group for the console-login service.  It's defined in the
manifest (/var/svc/manifest/system/console-login.xml), and used to 
configure various ttymon settings (documented in ttymon(1M)).

They're service-specific property-groups and properties, so we needed a 
generic way to specify them rather than the more rigid ways of defining 
methods and dependencies, which have explicit support in the DTD.

liane
-- 
Liane Praza, Solaris Kernel Development
liane.praza at sun.com - http://blogs.sun.com/lianep



Reply via email to