View Single Post
  #3   (View Single Post)  
Old 12th January 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

Whatever guide you have been following that sent you to rc.local is at least three years out-of-date. Starting with OpenBSD 4.9, the OS deployed an rc.d infrastructure and all built-in and third party (ports/packages) daemons use it. You can look through the complete list of rc.d scripts, both built-in and installed through packages (dbus, cups, and the like) as they are all located in the /etc/rc.d directory.

You turn them on and off by setting variables in your /etc/rc.conf.local file. Built-in daemons are enabled by setting their individual <daemon>_flag variables, and third party daemons are added to a space separated pkg_scripts variable. To start both dbus and cups, you might have this line within rc.conf.local:
Code:
pkg_scripts="dbus_daemon cupsd"
For more info, see these man pages:afterboot(8), rc.conf(8), rc.d(8), and OpenBSD FAQ 10.3. The FAQ is the only official how-to document, and unlike whatever you were using, it is kept up to date with the most recent release.

The rc.conf infrastructure is also briefly described in the Email to the new root account that is part of the standard installation.
Reply With Quote