From owner-freebsd-rc@FreeBSD.ORG Sun Apr 25 11:12:09 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5145B16A4CE; Sun, 25 Apr 2004 11:12:09 -0700 (PDT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9923643D39; Sun, 25 Apr 2004 11:12:08 -0700 (PDT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 078DF119AA; Sun, 25 Apr 2004 20:12:04 +0200 (CEST) Date: Sun, 25 Apr 2004 20:12:04 +0200 From: "Simon L. Nielsen" To: freebsd-rc@FreeBSD.org Message-ID: <20040425181204.GD1130@zaphod.nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qp4W5+cUSnZs0RIF" Content-Disposition: inline User-Agent: Mutt/1.5.6i cc: Sean Kelly cc: Poul-Henning Kamp Subject: Patch for rc.d/watchdogd X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 25 Apr 2004 18:12:09 -0000 --qp4W5+cUSnZs0RIF Content-Type: multipart/mixed; boundary="GxcwvYAGnODwn7V8" Content-Disposition: inline --GxcwvYAGnODwn7V8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello The current watchdogd rc.d script doesn't work with hardware watchdogs supported by watchdog(4)/watchdogd(8) since the sysctl debug.watchdog doesn't exist for the hardware devices. The attached patch simply removes the check for the sysctl since the generic watchdog code is always compiled in. Could someone commit this or approve it so I can commit it myself? --=20 Simon L. Nielsen FreeBSD Documentation Team --GxcwvYAGnODwn7V8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rc.d-watchdogd.patch" Content-Transfer-Encoding: quoted-printable Index: watchdogd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/etc/rc.d/watchdogd,v retrieving revision 1.2 diff -u -d -r1.2 watchdogd --- watchdogd 8 Mar 2004 12:25:05 -0000 1.2 +++ watchdogd 25 Apr 2004 17:56:57 -0000 @@ -36,16 +36,7 @@ name=3D"watchdogd" rcvar=3D"`set_rcvar`" command=3D"/usr/sbin/${name}" -start_precmd=3D"watchdogd_precmd" pidfile=3D"/var/run/${name}.pid" =20 -watchdogd_precmd() -{ - if ! sysctl debug.watchdog >/dev/null 2>&1; then - err 1 "Your kernel doesn't have watchdog support." - fi - return 0 -} - load_rc_config $name run_rc_command "$1" --GxcwvYAGnODwn7V8-- --qp4W5+cUSnZs0RIF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAi/90h9pcDSc1mlERAtPBAJ0SizNG2tAWRkPzxIf1sHTTvVW6hwCdFzlP gJANKfq9+NKDk7CLjQ9pC/c= =EKxc -----END PGP SIGNATURE----- --qp4W5+cUSnZs0RIF--