devd predates service in the system. Modernize usage to use service to start/stop things in reaction to events rather than calling the rc file directly. This was pointed out in my talk at BSDcan as well as indirectly referrred to as a barrier to entry for OpenRC in that working group.
21 lines
451 B
Plaintext
21 lines
451 B
Plaintext
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
#
|
|
# Example devd configuration file for automatically
|
|
# loading what modules we can based on nomatch
|
|
# events.
|
|
#
|
|
# Generic NOMATCH event
|
|
nomatch 100 {
|
|
action "service devmatch start '?$_'";
|
|
};
|
|
|
|
# Add the following to devd.conf to prevent this from running:
|
|
# nomatch 1000 {
|
|
# action "true";
|
|
# };
|
|
# it replaces the generic event with one of higher priority that
|
|
# does nothing. You can also set 'devmatch_enable=NO' in /etc/rc.conf
|