diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-02-03 04:18:56 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-02-03 04:18:56 +0000 |
commit | 526785c638601ca0cd393a2d9c3621f5dfd0cc45 (patch) | |
tree | 3d6f7a30501d42369124596593d55038b0d91238 /etc/devd.conf | |
parent | ddb842ccb674690c1d77ccad4ed3aea51e473f21 (diff) | |
download | src-526785c638601ca0cd393a2d9c3621f5dfd0cc45.tar.gz src-526785c638601ca0cd393a2d9c3621f5dfd0cc45.zip |
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).
Notes
Notes:
svn path=/head/; revision=125366
Diffstat (limited to 'etc/devd.conf')
-rw-r--r-- | etc/devd.conf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index cc7a20871a26..f9453ecde2f3 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 |