summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2011-03-30 18:35:02 +0000
committertrasz <trasz@FreeBSD.org>2011-03-30 18:35:02 +0000
commit59279484e835471b7e0aeff6bc7945f3196990ad (patch)
treefc1d8978dcc709cf817204cbb4f117b0b6299f18 /etc/devd.conf
parentd881081128369bb6e195fe45a2996aac7631fb75 (diff)
downloadFreeBSD-src-59279484e835471b7e0aeff6bc7945f3196990ad.zip
FreeBSD-src-59279484e835471b7e0aeff6bc7945f3196990ad.tar.gz
Add example devd.conf entry.
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index c36138a..807ec05 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -301,6 +301,7 @@ detach 10 {
# Button: Button pressed (0 for power, 1 for sleep)
# CMBAT: ACPI battery events
# Lid: Lid state (0 is closed, 1 is open)
+# RCTL: Resource limits
# Suspend, Resume: Suspend and resume notification
# Thermal: ACPI thermal zone events
#
@@ -313,4 +314,13 @@ notify 10 {
match "subsystem" "ACAD";
action "/etc/acpi_ac $notify";
};
+
+# This example works around a memory leak in PostgreSQL, restarting
+# it when "user:pgsql:swap:devctl=1G" rctl(8) rule gets triggered.
+notify 0 {
+ match "system" "RCTL";
+ match "rule" "user:70:swap:.*";
+ action "/usr/local/etc/rc.d/postgresql restart"
+};
+
*/
OpenPOWER on IntegriCloud