Changeset View
Changeset View
Standalone View
Standalone View
etc/devd.conf
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | |||||
# This example works around a memory leak in PostgreSQL, restarting | # This example works around a memory leak in PostgreSQL, restarting | ||||
# it when the "user:pgsql:swap:devctl=1G" rctl(8) rule gets triggered. | # it when the "user:pgsql:swap:devctl=1G" rctl(8) rule gets triggered. | ||||
notify 0 { | notify 0 { | ||||
match "system" "RCTL"; | match "system" "RCTL"; | ||||
match "rule" "user:70:swap:.*"; | match "rule" "user:70:swap:.*"; | ||||
action "/usr/local/etc/rc.d/postgresql restart"; | action "/usr/local/etc/rc.d/postgresql restart"; | ||||
}; | }; | ||||
# Discard autofs caches, useful for the -media special map. The one | |||||
# second delay is for GEOM to finish tasting. | |||||
# | |||||
# XXX: We should probably have a devctl(4) event that fires after GEOM | |||||
# tasting. | |||||
# | |||||
notify 100 { | |||||
match "system" "DEVFS"; | |||||
match "cdev" "(da|mmcsd)[0-9]+"; | |||||
action "sleep 1 && /usr/sbin/automount -c"; | |||||
}; | |||||
*/ | */ |