cutting down the cross-posting list that seems to keep denigrating into a kvetching-fest around SXCE ..

On Aug 19, 2009, at 2:03 PM, Danek Duvall wrote:

Jonathan Edwards wrote:

- refresh_fmri, restart_fmri .. seems to only affect existing FMRIs -
how about packages that install an FMRI and want to import it?

Tag your service manifest with

   restart_fmri=svc:/system/manifest-import:default

If it needs to be enabled from the get-go, the manifest can say so.

It might be worth putting this particular example into one of the man
pages.

okay .. so with this and a <create_default_instance enabled="true" /> tag in the SMF manifest I can get the service to import and enable itself .. but how do I delete the service completely? currently I have:

file myapp.xml mode=0444 owner=root group=sys path=/var/svc/manifest/ application/myapp/myapp.xml restart_fmri=svc:/system/manifest- import:default disable_fmri=svc:/application/myapp:default

and on an uninstall i see the path and the SMF manifest go away but I still see:
# svcs -a | grep myapp
disabled       18:47:17 svc:/application/myapp:default

and have to go in and do a svccfg delete application/myapp .. is there a way to get this refreshed on a uninstall?

once again .. thanks in advance
---
.je
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to