On 04/06/2012 02:55 PM, Brian Stansberry wrote:
I can't figure out a way to produce a notification of an
impending
server shutdown if a user does a soft kill of the server process.
It's easy enough if shutdown is initiated by a management op; the op
handler can trigger the notification. But a soft kill triggers a
shutdown hook registered by the MSC ServiceContainer, and once that
starts, services start stopping semi-randomly and its too late to notify
anyone that that is going to start happening.
The MSC shutdown stuff isn't exposed, so there's no way to tie into
that. Adding another shutdown hook doesn't help as there's no
predictable order of execution.
Originally I had assumed (wrongly) at some level that AS 7 would be
completely service-oriented as 5 and 6 were. The reality is that AS 7
is oriented around management, not services. I still think that a
service-oriented VM is a valid use case for MSC, however I think that
this is not the case in AS 7. So I think I should introduce an option
to disable the shutdown hook in MSC, and instead we should create one
for AS 7 which executes a shutdown management operation.
WDYT?
--
- DML