Quoth Cathy Thomas on Mon, Oct 23, 2006 at 05:46:41PM -0700:
> It seems as if everything ran successfully. However, I do
> not see my package registered when I do "svcs -a".  I try 
> to import the package manually, and I get an error that I
> do not understand:
...
> % svccfg import /var/svc/manifest/network/ipmievd.xml
> svccfg: Scope "localhost" changed unexpectedly (service
>        "network/ipmievd" added).
> svccfg: Could not refresh svc:/network/ipmievd:default (deleted).

This happens when a buggy i.manifest is used.  If your package has an
i.manifest file which uses SVCCFG_REPOSITORY, then that is your problem.
You can fix it by restarting svc.configd ("pkill configd" as root).
Then you should fix your package, or file a bug.

> Also, I tried tweaking some things in the xml manifest and the
> start/stop method directly on my desktop in the files:
> 
>       /var/svc/manifest/network/ipmievd.xml
>       /lib/svc/method/svc-ipmievd
> 
> and then running "svccfg import" manually, but I still got the same
> error message.
> 
> Is it ok to do what I did? --- change the manifest/method on the machine
> itself and re-run svccfg, or must the method/manifest always be inserted
> via a pkgadd because some "other" SMF commands run in the background which
> update the repository?

It's not ok to change the manifest and reimport it in place.  If you
want to change properties, you should go in with svccfg and change them
directly.

> Is there a way to check what is in the repository (repository.db)?

Sure, svccfg should show you.

> Is there a log file someplace where I can see more info on the commands
> that I run?

Not svccfg.


David

Reply via email to