Add example devd.conf entry.
This commit is contained in:
parent
cb89c25099
commit
14d90ef1e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220168
@ -301,6 +301,7 @@ detach 10 {
|
|||||||
# Button: Button pressed (0 for power, 1 for sleep)
|
# Button: Button pressed (0 for power, 1 for sleep)
|
||||||
# CMBAT: ACPI battery events
|
# CMBAT: ACPI battery events
|
||||||
# Lid: Lid state (0 is closed, 1 is open)
|
# Lid: Lid state (0 is closed, 1 is open)
|
||||||
|
# RCTL: Resource limits
|
||||||
# Suspend, Resume: Suspend and resume notification
|
# Suspend, Resume: Suspend and resume notification
|
||||||
# Thermal: ACPI thermal zone events
|
# Thermal: ACPI thermal zone events
|
||||||
#
|
#
|
||||||
@ -313,4 +314,13 @@ notify 10 {
|
|||||||
match "subsystem" "ACAD";
|
match "subsystem" "ACAD";
|
||||||
action "/etc/acpi_ac $notify";
|
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"
|
||||||
|
};
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user