On Wed, Dec 21, 2011 at 03:17:24PM +0400, pavel pocheptsov wrote:
> 21 P4P5P:P0P1QQ 2011, 14:41 P>Q Antoine Jacoutot <ajacou...@bsdfrog.org>:
> > 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
> >
> >
> Thanks, so old way is no longer needed or it use for daemons,
> that not properly installed and not put own startup-script in /etc/rc.d?

You can still use the old way if you prefer.


--
Antoine

Reply via email to