Jason King wrote: > On Wed, Oct 29, 2008 at 12:13 PM, David Bustos <David.Bustos at sun.com> > wrote: >> Quoth Jason King on Fri, Oct 24, 2008 at 02:07:08PM -0500: >>> I can't seem to find anything that documents this, but are there any >>> rules for valid fmri (specifically for services)? More specifically, >>> are there any issues if the instance name is numeric (i.e. >>> svc://site/foo:1 or such)? >> Ceri answered your question about instance names. More generally, the >> code for parsing FMRIs is at >> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libscf/common/lowlevel.c#5022 >> . >> I think the only documentation is in the ARC case, which was supposed to >> be opened, but I don't know the current status of. Anyway, it seems >> like something that should be in the manual, so feel free to file a bug >> at bugs.opensolaris.org . >> >> >> David >> > > I'll do that. To provide a bit of context, certain applications we > run (in java) require Xvfb to be running, and for whatever reason, > we've been having issues with them dieing. Not having had a lot of > time to try to use some dtrace magic on them, I wanted to move them > into smf services, where the display number would be the most logical > way to identify each instance. However it appears I'll just have to > spell them out.
If I remember correctly, numbers are allowed inside instance names, but not as the first character, since I wanted to do something similar when defining the x11-server SMF services, but had to settle for instance names such as 'x11-server:display0' instead of 'x11-server:0'. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering