Shawn Walker wrote:
> Greetings,
> 
> I had some questions about SMF manifests that I was hoping someone could 
> answer.  I've spent read through the available documentation that I 
> could find, but I still could not find anything that explains these items:
> 
>    1. What are the differences between the different propval types (e.g. 
> count, integer, etc.)?  Is there a document somewhere that explicitly 
> defines what each of these data types expects for a value (format, 
> limits, etc.)?

Hopefully the table in scf_value_create(3scf) helps.

> 
>    2. Is it possible to create property groups of property groups (the 
> dtd suggests that this is not possible)?

Correct.  Not possible.

> 
>    3. Is it possible to conditionally specify options to a program in 
> its start method based on a property value?  In other words, if I have:
> 
>    <propval name='error_log' type='astring' value='stderr' />
> 
> ...can my start method conditionally include a --log-errors command-line 
> option to my program based on the value of the propval?

Sure.  Most people do this like it's done in 
/lib/svc/method/console-login.

> 
>    4. I have a need for users to be able to specify values to the 
> program based on locale.  This is not the locale that the program is 
> running in, but the locale of the content being generated by the 
> program.  For example, I have a property group called "repository" and a 
> propval called "name".  What is the best way for them to be able to 
> specify a value for "name" for each locale (e.g. en, fr, etc.)?

We currently do this with a convention of appending the locale name to 
the property name.  We don't have explicit formal support for it at this 
point, though.

liane

Reply via email to