freebsd-dev/etc/devd/devmatch.conf
Warner Losh b5e2ff92e5 User service foo rather than /etc/rc.d/foo.
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.
2018-06-11 22:48:34 +00:00

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