Chapter 5 covered how to have OpenBSD start packaged software, but let’s review it quickly. When you install a package that can be started at boot time, the package also installs a startup script in /etc/rc.d. If I install the OpenLDAP server, the package installation will report:
… The following new rcscripts were installed: /etc/rc.d/slapd
To start the
slapd(8) OpenLDAP server at boot, add the script name to the
pkg_scripts variable in /etc/rc.conf.local.
OpenBSD runs these scripts in order at boot, and in reverse order at shutdown.
To change a package’s command-line arguments from the default, add a
_flags variable to rc.conf.local. Do not edit the startup script.
slapd_flags="-u _openldap ...