From owner-freebsd-current@FreeBSD.ORG Tue Dec 17 21:31:39 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04FA933F for ; Tue, 17 Dec 2013 21:31:39 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id CF2201F14 for ; Tue, 17 Dec 2013 21:31:38 +0000 (UTC) Received: from [10.1.1.1] (S01060001abad1dea.hm.shawcable.net [50.70.108.129]) (Authenticated sender: allan.jude@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 9B95F4D3E7 for ; Tue, 17 Dec 2013 21:31:37 +0000 (UTC) Message-ID: <52B0C2B7.7050008@allanjude.com> Date: Tue, 17 Dec 2013 16:31:35 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: [rfc] [patch] do not stop watchdog on shutdown References: <20131217232838.c4584918.ray@freebsd.org> In-Reply-To: <20131217232838.c4584918.ray@freebsd.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IAIxp6ck7WxTB2RDM61UiwPWCMhN3uIbd" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 21:31:39 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IAIxp6ck7WxTB2RDM61UiwPWCMhN3uIbd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-12-17 16:28, Aleksandr Rybalko wrote: > On Tue, 17 Dec 2013 10:53:02 -0800 > Maksim Yevmenkin wrote: > >> hello, > Hi Maksim! > >> would anyone object to this patch? > It is good idea, but sometimes shutdown sequence longer than some H/W > watchdogs even support. > I have one board which can do only 20sec maximum time. > >> max >> >> Index: src/etc/rc.d/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 >> --- src/etc/rc.d/watchdogd (revision 2999) >> +++ src/etc/rc.d/watchdogd (working copy) >> @@ -39,4 +39,7 @@ >> pidfile=3D"/var/run/${name}.pid" >> >> load_rc_config $name >> + >> +sig_stop=3D"${watchdogd_sig_stop:-TERM}" >> + >> run_rc_command "$1" >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" > I've been seeing an issue where sometimes my system seems to hang after the shutdown. where not stopping the watchdog might help. I wonder if it would be best to make some kind of rc.conf variable to allow the user to opt for one or the other, keeping the current behaviour for POLA. --=20 Allan Jude --IAIxp6ck7WxTB2RDM61UiwPWCMhN3uIbd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSsMK6AAoJEJrBFpNRJZKfCu0P/iGD9hqxtIQf1I6ffpS7U/wx QODlqiqv1djOpbLAYjE5YMUbRu4FrHCgWhx1ANzjpcwS8PKI9+nMrg3AzYtcGpqv moPlU0f29iSMtmRruu3hi43wFDhtdBqN11agFz6PVWliTVYbV7U/l2h23ULg2VAa HZKZtgyv4oZUwdB4jZ7MPa9pR7lVJl3AIMh/ahaR2g/4kUtNOtxhoSVVJ/WizfTD 7ZwmqbnyYO8TN0E6WS4dKgsb4aa9QyJs0/IeRX7YKn5GSu0amUUIHZcgwW/TE8qj +miv8lJHybD2z4K8SYp/csVmYmxq3SNcCiWlD6ze0sXQ1qzyhHjVMITwq48uTZvN v1azCIUKqTAn0ZLz16fJOvI4Bi+lMrrnmEayx0f176vn08r+u+IF7/VIkYRZQaPs Us1vcPMn/FbdIF5hpdfxqKo2FAXGjUZpSn4BZrRXk1V1/TYjE5W+2f2+5m34w+IB Da88rEsm1SfvykRWE+BAVCC1U3b1daut/WeguxAotoRMhN565zrYpzisRcIzQrRg ldqz/vmgeRTTPcMYKG5Bsum3MfhURyhmM3XrVwhOidMtEw0DqQMiQ5z983aJ1eaj qWf21Ol4C74Hnr3vZuSpfXBYmVDrAOdHjMZmAsT1FhjLZ6F/XewjHcWivA8lr9B7 qeKI1/GiKER/VYVs4urL =cMt+ -----END PGP SIGNATURE----- --IAIxp6ck7WxTB2RDM61UiwPWCMhN3uIbd--