Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2012 07:59:56 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        crees@FreeBSD.org
Cc:        freebsd-rc@FreeBSD.org, wblock@FreeBSD.org, bug-followup@FreeBSD.org
Subject:   Re: bin/165477: [rc] dhclient is run twice
Message-ID:  <20121118.075956.2090347175828215059.hrs@allbsd.org>
In-Reply-To: <201211021111.qA2BBHEi008211@freefall.freebsd.org>
References:  <201211021111.qA2BBHEi008211@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart0(Sun_Nov_18_07_59_56_2012_823)--
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Sun_Nov_18_07_59_56_2012_546)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Sun_Nov_18_07_59_56_2012_546)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

crees@freebsd.org wrote
  in <201211021111.qA2BBHEi008211@freefall.freebsd.org>:

cr> Synopsis: [rc] dhclient is run twice
cr>
cr> State-Changed-From-To: open->feedback
cr> State-Changed-By: crees
cr> State-Changed-When: Fri Nov 2 11:11:17 UTC 2012
cr> State-Changed-Why:
cr> Please try out the patch at
cr> http://www.bayofrum.net/~crees/patches/165477.diff to devd.conf.  It
cr> does the "right thing", so let me know if it stops your problem.

 I think it is safe to remove the warning message when rc_quiet=YES.
 What do you think about the attached patch?

-- Hiroki

----Next_Part(Sun_Nov_18_07_59_56_2012_546)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="rc.subr_quiet_20121118-1.diff"

Index: etc/rc.subr
===================================================================
--- etc/rc.subr	(revision 243184)
+++ etc/rc.subr	(working copy)
@@ -704,7 +704,9 @@

 		start)
 			if [ -z "$rc_fast" -a -n "$rc_pid" ]; then
-				echo 1>&2 "${name} already running? (pid=$rc_pid)."
+				if [ ! -z "$rc_quiet" ]; then
+					echo 1>&2 "${name} already running? (pid=$rc_pid)."
+				fi
 				return 1
 			fi


----Next_Part(Sun_Nov_18_07_59_56_2012_546)----

----Security_Multipart0(Sun_Nov_18_07_59_56_2012_823)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEABECAAYFAlCoFuwACgkQTyzT2CeTzy1usgCgmqzn4/7Yhr0+fwxOPHqOXW07
FzUAoLQ/xwkyWXICEt8ptmJZrTq6icRA
=etD7
-----END PGP SIGNATURE-----

----Security_Multipart0(Sun_Nov_18_07_59_56_2012_823)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121118.075956.2090347175828215059.hrs>