Jeff,

> At my site we have a script that tidys file permissions and links on
> hosts every night, or after they're rebooted. I'm trying to get it to
> play nice with SMF, but no dice. I've got a manifest (attached as
> mybin.xml) that should do what I want. An "svccfg validate" or
> "xmllint --valid" against this file turns up nothing, but when I
> import the manifest, svccfg import completes, but the service doesn't
> show up in svcs -a. Not disabled, not maintenance, just nothing
> there. Is there any way to get more detailed debugging info out of
> svccfg than the -v option? That just tells me the import has
> completed successfully...

  This is one of those "what you want" vs. "what you ask for"
  situtations which are notoriously difficult for computers to
  distinguish.

  Your service description is valid, but it lacks one element that you
  need for it to function as you would like: an instance definition.
  svcs only shows instances as only instances can be enabled or
  disabled (or otherwise have state).  And because it is valid for a
  service description to not define any instances, we don't reject the
  import.

  So what you need to do is create an instance.  You can take the
  verbose route and create an <instance>...</instance> section in your
  service, but since it looks like you already have all the necessary
  data in the service, you can just add this:

    <create_default_instance enabled='false' />

  which will create a "mybin:default" instance that will be disabled
  until you explicitly enable it.

  Dave


Reply via email to