On 5/6/11 6:38 AM, Michal Pryc wrote:
Hello,

I have one SMF service delivered by the package ZZZZZ with attribute in
the SMF ZZZZZ.xml file:

<create_default_instance enabled='false' />

The IPS action in the package ZZZZZ imports this as SMF service
application/ZZZZZ, because the system/manifest-import SMF service is
restarted:

file b2ee1bd44a3c4d40b8154cb03e9c7c49455b99fa
chash=237b7adb1e704f342fc91e9566ee670d6b9ce4fd group=sys mode=0444
owner=root path=lib/svc/manifest/application/ZZZZZ.xml pkg.csize=1212
pkg.size=2454 restart_fmri=svc:/system/manifest-import:default

This works fine, but by default this service is in OFFLINE state.

This statement is odd. It should be in the disabled state if it's disabled in the manifest (and not enabled by any profile).

What should I do to enable this service while installing ANOTHER package
YYYYY.

You can't through IPS actions. For an alternate BE, that'd mean having IPS manipulate SMF configuration, which we don't do due to the fact that then old BEs would need to be able to know how to do configuration on new BEs. That sort of compatibility is very expensive to guarantee.

So the use cese would be as follows:

- installing ZZZZZ will create SMF service which will be in the OFFLINE
state (current situation)

- installing YYYYY would bring this SMF service into ONLINE state


would the restart_fmri=svc:/application/ZZZZZ flag in the package YYYYY
do the job, what would be the recommended way of doing it or it's not
yet supported and I need to deliver SMF service in the YYYYY package
with create_default_instance enabled='true' flag?

The possible ways are to:
- deliver it as enabled in the manifest.
- have the admin enable it.
- have the software delivered by YYYY enable it when appropriate.
  (this may be annoying for the admin, though, if they disable ZZZZ
  explicitly.)

All of these must also take into account the security profile of the software... if it keeps network ports open, it must be off by default and shouldn't be turned on as a side-effect of installing another package.

But, what you're describing seems a bit odd as an interaction model. Perhaps if you spoke concretely about the software and why you're trying to do this, better advise could be formulated.

liane
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to