On Wed, Dec 21, 2011 at 02:26:32PM +0400, pavel pocheptsov wrote:
> Hello misc.
> In old release of OBSD to start daemons with system was used rc.local. 
> For example:
> if [ -x /usr/local/bin/mysqld_safe ] ; then
>    su -c _mysql root -c '/usr/local/bin/mysqld_safe >/dev/null 2>&1 &'
>    echo -n ' mysql'
>  fi
> 
> In 5.0 have changes described here: http://www.openbsd.org/faq/faq10.html#rc
> and in man rc.d and rc.conf.local.
> The questions is how to start mysqld_safe or cupsd or any other daemon,
> that was placed in /etc/rc.d?
> Add the lines to rc.conf.local like this:
> pkg_scripts="cupsd"
> pkg_scripts="mysqld"
> 
> or something else?

pkg_scripts="cupsd mysqld"

Order matters, since daemons will be started accordingly.

-- 
Antoine

Reply via email to