Nicolas Williams writes:
> On Wed, Jul 23, 2008 at 05:40:57PM -0500, Shawn Walker wrote:
> > Nicolas Williams wrote:
> > >On Wed, Jul 23, 2008 at 03:54:09PM -0500, Shawn Walker wrote:
> > >>>>   2. Is it possible to create property groups of property groups (the 
> > >>>>dtd suggests that this is not possible)?
> > >>>Correct.  Not possible.
> > >>Hrm, someone mentioned that:
> > >>
> > >>   You can manage a pool of configuration values using the property group
> > >>   mechanism, with an overall property group listing the relevant group
> > >>   or groups for each member.
> > >>
> > >>What did they mean by that then?
> > >
> > >You can have one pg/prop naming dynamically-created pgs that are part of
> > >an ad-hoc group-of-pgs.
> > >
> > >That'd be totally ad-hoc.  But doable.
> > 
> > I'm almost a complete SMF "newbie" -- can you expound a bit?
> 
> # svccfg
> svc:> select someservice
> svc:/someservice> help
> ...
> svc:/someservice> addpg
> Usage: addpg name type [P]
> 
> Add a new property group to the currently selected entity.
> svc:/someservice> addpg foo application
> svc:/someservice> setprop foo/pg_list = astring: foo1
> svc:/someservice> addpropvalue
> Usage: addpropvalue pg/name [type:] value
> 
> Add the given value to the named property.
> svc:/someservice> addpropvalue foo/pg_list foo2
> svc:/someservice> addpg foo1 application
> svc:/someservice> addpg foo2 application
> svc:/someservice> setprop foo1/someprop = astring: bar
> svc:/someservice> setprop foo2/blahblah = astring: baz
> svc:/someservice> listprop foo*
> foo            application
> foo/pg_list    astring  "foo1" "foo2"
> foo1           application
> foo1/someprop  astring  bar
> foo2           application
> foo2/blahblah  astring  baz
> svc:/someservice>  ^D
> # 
> 
> 
> Nico
> -- 
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org

After modifying the repository with svccfg, don't forget to
"svcadm refresh <service>".  This will move the repository  modifications
into the running snapshot, so that they can be seen by the service.

tom

Reply via email to