Nope, that still does not resolve the problem. There is no active pid under the conditions that I am having, only the fact that the file /etc/dhcpc/dhcpcd-eth0.pid is still there. I personally don't like the information result either. I like it to just kill the pid, remove the file and start eth0. These kinds of problems seem to crop up when there are hard freezes on the system or some other error, so I don't think the brute force approach is incorrect for this. I am not aware of any bad things that can happen (unless of course the dhcp server is down). Do you still have the original script just for comparison sake?
[root@sidell sbin]# ifup eth0 dhpcd is running ifdown it before [root@sidell sbin]# ifdown eth0 [root@sidell sbin]# ifup eth0 dhpcd is running ifdown it before --- Chmouel Boudjnah <[EMAIL PROTECTED]> wrote: > > Ok player try again, look like this is working : > > --- ifup.~1.29.~ Wed Feb 13 19:38:49 2002 > +++ ifup Fri Feb 15 10:23:29 2002 > @@ -228,11 +228,12 @@ > DHCP_ARGS="$DHCP_ARGS $DEVICE" > PIDF=/etc/dhcpc/dhcpcd-$DEVICE.pid > if [[ -f $PIDF ]];then > - if kill -0 `cat $PIDF`;then > - true; #running > - else > - /bin/rm -f $PIDF; #clear it > + PID=$(cat /etc/dhcpc/dhcpcd-$DEVICE.pid) > + if [[ -n $PID ]] && kill -0 $PID;then > + echo "dhpcd is running ifdown it before" > + exit; > fi > + /bin/rm -f $PIDF; #clear it > fi > ;; > pump) > ===== SI Reasoning [EMAIL PROTECTED] "To announce that there must be no criticism of the president or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." Theodore Roosevelt __________________________________________________ Do You Yahoo!? Got something to say? Say it better with Yahoo! Video Mail http://mail.yahoo.com