Problem with FreeBSD graceful shutdown
falk
falknisius at gmx.de
Tue May 24 16:01:20 UTC 2011
You can add i file at /etc/devd with the configuration for the power button.
Perhaps you name the file power.conf
The Content should be
notify 10 {
match "system" "ACPI";
match "subsystem" "Button";
match "notify" "0x00";
notify "/etc/rc.halt";
};
It tolds the devd, if there is a message from ACPI, and from the Buttons (0
means the power button, 1 means the sleep button) than call the halt script
to shutdown the system. You can use a other script with more cleaning up
before the shutdown -p would be invoked.
It works for me with libvirt and qemu Monitor both
Falk
--
View this message in context: http://freebsd.1045724.n5.nabble.com/Problem-with-FreeBSD-graceful-shutdown-tp4227264p4422479.html
Sent from the freebsd-acpi mailing list archive at Nabble.com.
More information about the freebsd-acpi
mailing list