[pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs
- From: Bart Smaalders <
- Subject: [pkg-discuss] Re: Issues with SMF services while uninstalling IPS pkgs
- Date: Mon, 19 Aug 2013 10:37:57 -0700
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.
Bart Smaalders Solaris Core OS
"You will contribute more with Mercurial than with Thunderbird."
"Civilization advances by extending the number of important
operations which we can perform without thinking about them."