Subject: Re: rc.d won't pass _flags on when restarting manually?
To: Amadeus Stevenson <amadeus.stevenson@gmail.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-users
Date: 01/06/2005 12:12:40
--VZEZlOQeSr/zV9d3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Jan 06, 2005 at 12:38:54AM +0000, Amadeus Stevenson wrote:
| #!/bin/sh
| #
| # $NetBSD: named.sh,v 1.2 2002/09/23 14:40:52 grant Exp $
| #
| # PROVIDE: named
| # REQUIRE: SERVERS
|=20
| . /etc/rc.subr
|=20
| name=3D"named"
| rcvar=3D${name}9
| command=3D"/usr/pkg/sbin/${name}"
| pidfile=3D"/var/run/${name}.pid"
|=20
| extra_commands=3D"reload"
|=20
| load_rc_config ${name}9 # check /etc/rc.conf.d/named9
|=20
| named_precmd()
| {
| # Die if $named is also set (i.e. the system's named is not dis=
abled
| if checkyesno named ; then
| warn \
| "disable 'named' when setting 'named9'!"
| return 1
| fi
| }
| start_precmd=3D"named_precmd"
|=20
| run_rc_command "$1"
That looks fairly normal, (although as a matter of style I put the
load_rc_config just before run_rc_command)
I've just tested with rc.d/rarpd (where I have rarpd_flags=3D"-l -a" in
rc.conf), and it restarts fine.
Do you have any fancy configuration in /etc/rc.conf or /etc/rc.conf.d/named=
9?
Do you use rc_fast_and_loose=3DYES ?
--VZEZlOQeSr/zV9d3
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iD8DBQFB3JCIpBhtmn8zJHIRAhyoAJ9JXnuQukjNJGtAgTPFE7O5t7kmYgCgttqm
jtWotECBw6hWxh8TsFp6yrE=
=6aGj
-----END PGP SIGNATURE-----
--VZEZlOQeSr/zV9d3--