On a SUSE system, a "vmhalt" event will never occur on a normal
shutdown.  The SUSE halt/reboot script (/etc/init.d/halt) will execute
either a "reboot" or "halt -p" (halt with poweroff), which will
trigger the "vmpoff" action instead.  Executing the halt or poweroff
commands while the system is not in runlevel 0 or 6 will execute
"shutdown -h" for either command, so all shutdowns are done with the
"poweroff" option.  (Of course, a reboot executes a "shutdown -r" and
does a reboot as expected.)

To me, it is too bad there isn't a "shutdown -p" option so that a sys
admin can choose whether to "halt" or "poweroff".  And then a
"poweroff" would execute a CP LOGOFF via the vmpoff parameter, but a
halt wouldn't (so you could reconfigure the virtual machine then
manually reboot, for example.)

I don't know if any of this is true for Red Hat, Debian, or any others.

On 4/28/06, Peter 1 Oberparleiter <[EMAIL PROTECTED]> wrote:

Note that the vmhalt function is only triggered after a user-initiated
system halt (meaning 'shutdown -h' or equivalent actions). Specifically
vmhalt will not be called after a kernel panic.

Given that with the above vmhalt line any 'shutdown -h' command will
trigger a vmdump, I would not recommend this approach.


Regards,
  Peter Oberparleiter

--
Peter Oberparleiter
Linux on zSeries Development
IBM Development Lab, Boeblingen/Germany

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390



--
Bruce Hayden
IBM Global Technology Services, System z Linux
Endicott, NY

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to