From owner-freebsd-rc@FreeBSD.ORG Thu Feb 10 09:11:46 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA3C71065670 for ; Thu, 10 Feb 2011 09:11:46 +0000 (UTC) (envelope-from canevet@embl.fr) Received: from emblmta1.embl.fr (emblmta1.embl.fr [193.49.43.176]) by mx1.freebsd.org (Postfix) with ESMTP id 575658FC08 for ; Thu, 10 Feb 2011 09:11:46 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.60,451,1291590000"; d="asc'?scan'208";a="1050177" Received: from unknown (HELO [172.26.15.11]) ([172.26.15.11]) by emblmta1.embl.fr with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 10 Feb 2011 09:41:47 +0100 From: =?ISO-8859-1?Q?Micka=EBl_Can=E9vet?= To: freebsd-rc@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-yjuPU6LW6zZEEA9UOXyz" Date: Thu, 10 Feb 2011 09:41:53 +0100 Message-ID: <1297327313.2502.9.camel@pc286.embl.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Subject: Help need to write a shutdown rc script. X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 09:11:46 -0000 --=-yjuPU6LW6zZEEA9UOXyz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'd like to stop the carp0 network interface at first while shutting down or rebooting a server, so that my second node takes the VIP ASAP. Right now my network interface carp0 is stopped late in the shutdown process like the others network interfaces. How is the cleaner way to stop it at first (even before stopping any other service). I think I have to write a rc script an put it in /usr/local/etc/rc.d, but I can't find any example of stop only rc script, and I don't exactly know which dependencies I must use. Thanks a lot for your help. Micka=C3=ABl --=-yjuPU6LW6zZEEA9UOXyz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk1TpNEACgkQZjBmN5Hi/Ya8bwCfRR11TRBh3HTJz9867IqXGK4i nSkAnAlJbdiZlN5MapmYLZRduekOIUKA =9hov -----END PGP SIGNATURE----- --=-yjuPU6LW6zZEEA9UOXyz--