OpenBSD manual page server

Manual Page Search Parameters

RC.CONF(8) System Manager's Manual RC.CONF(8)

rc.conf, rc.conf.localsystem daemon configuration database

The file 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 rc.conf untouched, and instead create and edit a new rc.conf.local file. Variables set in this file will override variables previously set in rc.conf.

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 rc.conf.local:

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:

pkg_scripts="dbus_daemon cupsd"

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)

The rc.conf file first appeared in OpenBSD 2.2.

March 17, 2012 OpenBSD-5.3