Search the web
Sign In
New User? Sign Up
FreeBSD-rc · Improving FreeBSD startup scripts
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Any objections against this patch ?   Message List  
Reply | Forward Message #364 of 729 |

===================================================================
Do not kill dhclient twice. If we execute dhclient -r,
dhclient gets already killed, so there is no need to
do it twice. But only do it, if we release some leases.
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/dhclient,v
retrieving revision 1.9
diff -u -r1.9 dhclient
--- dhclient 28 Jul 2003 08:15:52 -0000 1.9
+++ dhclient 15 Sep 2003 16:36:13 -0000
@@ -53,8 +53,6 @@

dhclient_prestart()
{
- dhclient_common || return 1
-
for ifn in ${_cooked_list}; do
ifscript_up ${ifn}
done
@@ -78,8 +76,6 @@

dhclient_prestop()
{
- dhclient_common || return 1
-
for ifn in ${_cooked_list}; do
ipx_down ${ifn}
ifalias_down ${ifn}
@@ -110,4 +106,10 @@
fi

load_rc_config $name
+dhclient_common
+if [ -n "$_cooked_list" ]; then
+ if [ -s $pidfile ]; then
+ stop_cmd=":"
+ fi
+fi
run_rc_command "$1"

Martin Blapp, <mb@...> <mbr@...>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr@...>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------



Mon Sep 15, 2003 6:24 pm

mb@...
Send Email Send Email

Forward
Message #364 of 729 |
Expand Messages Author Sort by Date

=================================================================== Do not kill dhclient twice. If we execute dhclient -r, dhclient gets already killed, so...
Martin Blapp
mb@...
Send Email
Sep 15, 2003
6:24 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help