Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2011 18:35:02 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220168 - head/etc
Message-ID:  <201103301835.p2UIZ2O8071886@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed Mar 30 18:35:02 2011
New Revision: 220168
URL: http://svn.freebsd.org/changeset/base/220168

Log:
  Add example devd.conf entry.

Modified:
  head/etc/devd.conf

Modified: head/etc/devd.conf
==============================================================================
--- head/etc/devd.conf	Wed Mar 30 18:32:45 2011	(r220167)
+++ head/etc/devd.conf	Wed Mar 30 18:35:02 2011	(r220168)
@@ -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"
+};
+
 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103301835.p2UIZ2O8071886>