Nicolas Williams wrote:
On Fri, Jun 05, 2009 at 03:40:17PM -0500, Todd Pisek wrote:
I have a service that is associated with the disable_fmri actuator. Is
there a way for the disable_fmri service's stop method to return failed
status back to IPS such that IPS aborts the remove?
If IPS is acting on a image that is not booted, then the disable won't
take effect until later, and, really, the stop method probably won't run
at all (since you're probably removing the service too). Even if the
image is running, the service might not be.
When the image is running the only thing IPS could know is whether the
service transitioned to maintenance, [likely] as a result of disabling
it. That's not really a lot of info to go on.
So, IMO, IPS should not act on the result of disabling any service.
(For that matter, the same applies to enabling and refreshing any
service too.)
Nico
The way I interpreted pkg(5), was that disable_fmri would run 'svcadm
disable <disable_fmri>' before removing files. I assumed the purpose of
this was to make sure the package's daemons etc. were stopped before
removing files and IPS would not remove anything until the service
disable completed. Is this correct?
If it is, I'm wondering what the use case is if the stop method can't
shutdown daemons, etc. properly. My particular package is a file system,
and the stop method can't properly complete if there are mounted file
systems.
--- Todd
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss