Thanks Tim and Bart for info.
I am still facing the issue even after adding SMF dependencies.
I have added optional_all dependencies for SMF-X depends SMF-Y depends SMF-Z
so that disable of SMF-Z is called first, then SMF-Y and then SMF-X. But
still they get called in parallel when uninstalling the packages.
Is this a SMF issue or IPS issue?
Thanks & Regards,
From: Bart Smaalders
Sent: Monday, August 19, 2013 11:08 PM
Subject: [pkg-discuss] Re: Issues with SMF services while uninstalling IPS
On 08/18/13 04:26 PM, Tim Foster wrote:
The OS doesn't start or stop SMF services serially, so making changes to
IPS to do so would just move the problem elsewhere (eg. nothing would
stop a user running multiple 'svcadm disable' commands in parallel)
If something's breaking because you expect services to be stopped
serially, then you really need to fix that by defining SMF dependencies,
as you suggest.
There is an RFE open to add a command line flag to pkg(1) to have it
wait until all actuators have finished starting/stopping before
returning, but I don't think that will really help you here.
We _must_ disable all the services at once, because pkg doesn't parse
Note that pkg is designed to combine the total changes to the system
requested by the user into a single operation, and the resulting
changes are made to the system as one single packaging operation,
NOT as a series of packaging operations. This is required in order
to allow packages to exchange content, rename directories, etc.
Services are disabled (and restarted/enabled) the same way - as a
single call to svcadm. This is necessary since pkg cannot and should
not determine which one to do first; instead, that's left to SMF
to decide using the dependencies specified in the manifests.
If your services are missing dependencies, you'll need to add
them so that services are disabled in the correct order.
|Sajith C . R .||08/17/2013|
|Sajith C . R .||08/21/2013|
[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs