summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-02-03 04:18:56 +0000
committernjl <njl@FreeBSD.org>2004-02-03 04:18:56 +0000
commit8ec8ff7672ef4b6b99e145cdd609754f9c4cbb17 (patch)
tree3d6f7a30501d42369124596593d55038b0d91238 /etc
parent39de947ca8fb40a08f0cf5545071ff98348a8baa (diff)
downloadFreeBSD-src-8ec8ff7672ef4b6b99e145cdd609754f9c4cbb17.zip
FreeBSD-src-8ec8ff7672ef4b6b99e145cdd609754f9c4cbb17.tar.gz
Notify the user (at kern.emerg) that the system will be shutting down if
it is still above the critical temperature on the next poll cycle. This is a 10 second advance notice by default. Document the private (non-standard) notify we will be using with devd(8).
Diffstat (limited to 'etc')
-rw-r--r--etc/devd.conf12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index cc7a208..f9453ec 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -74,7 +74,17 @@ nomatch 0 {
notify 10 {
match "system" "ACPI";
match "subsystem" "ACAD";
- action "/etc/rc.d/power_profile $notify";
+ action "/etc/rc.d/power_profile $notify";
+};
+
+# Notify all users before beginning emergency shutdown when we get
+# a _CRT or _HOT thermal event and we're going to power down the system
+# very soon.
+notify 10 {
+ match "system" "ACPI";
+ match "subsystem" "Thermal";
+ match "notify" "0xcc";
+ action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
};
/* EXAMPLES TO END OF FILE
OpenPOWER on IntegriCloud