On 05/01/12 10:23, Sajith C.R. wrote:
> Hi IPS team,

> I have a package in p5p format whose manifest contains some SMF
> service for service management and few other as run-once SMF for
> control script purpose. The run-once SMF delete itself once run.

> The package works fine with pkg install command during fresh
> install. But, it is seen that when same IPS package is used to update
> an old version (which also contains the same SMF services) with pkg
> update command, SMF services are not getting updated or created. The
> scripts for enabling/disabling services are not getting invoked. The
> SMF manifest files are packaged at /var/svc/manifest/system and
> tagged with actuator restart_fmri.
> 
> Any idea why pkg update is failing to update / create SMF services?

When you say "the scripts for enabling/disabling services are not
getting invoked," do you mean the run-once SMF service?

If so, this is because it has deleted itself.  Service deletion is an
administrative customization that is preserved across upgrade.

When pkg restarts the manifest-import service, it will correctly detect
any changes in the xml manifests under var/svc/manifest, and will update
the repository accordingly.  It will NOT remove any administrative
customizations (enable, disable, delete, change property values) that
have been made to those services.

--Mark

> Snippet of manifest:
> 
> file /pkg/solaris/my-run-once.xml 
> path=var/svc/manifest/system/my-run-once.xml owner=root group=sys mode=0744 
> restart_fmri=svc:/system/manifest-import:default
> file /pkg/solaris/my.xml path=var/svc/manifest/system/my.xml owner=root 
> group=sys mode=0744 restart_fmri=svc:/system/manifest-import:default 
> variant.opensolaris.zone=global
> 
> Log of manifest-import is not showing any specific errors.
> 
> Thanks & Regards,
> Sajith
> 
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

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

Reply via email to