mirror of
https://github.com/opnsense/src.git
synced 2026-02-17 09:39:26 -05:00
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.
20 lines
451 B
Text
20 lines
451 B
Text
#
|
|
# $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
|