system daemon configuration
rc.conf contains a series of
Bourne shell syntax assignments that are used to configure the system
daemons. It is not read by the kernel, but is sourced by various other files
in the /etc/rc.* series in order to set shell
variables used therein to control the behaviour of the scripts.
It is advisable to leave
untouched, and instead create and edit a new
rc.conf.local file. Variables set in this file will
override variables previously set in
Some variables are used to turn features on or off. For example, whether the system runs the dhcpd(8) daemon is determined by the following line:
dhcpd_flags=NO # for normal use: ""
To run the dhcpd daemon, add the following line to
dhcpd_flags="" # for normal use: ""
If instead some options are specified, then the dhcpd daemon will be started with those options. For example:
dhcpd_flags="-A abandoned" # for normal use: ""
Other variables specify a simple YES or NO, or simply determine the location of a file. For example, the location of the ruleset for pf(4) is given thus:
pf_rules=/etc/pf.conf # Packet filter rules file
Finally there is the pkg_scripts variable, responsible for starting and stopping rc.d(8) scripts installed by packages in the specified order. For example:
This will run /etc/rc.d/dbus_daemon then /etc/rc.d/cupsd with the start argument at boot time, and in reverse order with the stop argument at shutdown.
init(8), intro(8), rc(8), rc.d(8)
rc.conf file first appeared in