Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2007 07:43:37 +0200
From:      Jonathan McKeown <jonathan+freebsd-questions@hst.org.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: BIND9 won't start
Message-ID:  <200712240743.37582.jonathan%2Bfreebsd-questions@hst.org.za>
In-Reply-To: <839aec700712231627k4457c65dx45791c76cd01b2fa@mail.gmail.com>
References:  <476ECA9B.4090805@free.fr> <476EE526.2000501@free.fr> <839aec700712231627k4457c65dx45791c76cd01b2fa@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 24 December 2007 02:15, Jonathan Horne wrote:

> otherwise, there is always 'forcestart' intead of 'start'.

and Darren Spruell wrote:

> You can get around the need to activate the variable by=20
> prefixing your commands with the 'force' keyword (e.g.
> /etc/rc.d/named forcestart, etc.)=20

To start a service which isn't enabled in rc.conf, it's better to use

onestart

=46rom the rc.subr(8) manpage:

    force  Skip the checks for rcvar being set to ``YES'', and
           sets rc_force=3DYES.  This ignores argument_precmd
           returning non-zero, and ignores any of the required_*
           tests failing, and always returns a zero exit status.

    one    Skip the checks for rcvar being set to ``YES'', but
           performs all the other prerequisite tests.

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712240743.37582.jonathan%2Bfreebsd-questions>