Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#2041 - Double dhcpcd running
Attached to Project:
Arch Linux
Opened by Sander Hekman (RedHead) - Wednesday, 19 January 2005, 14:51 GMT
Last edited by Judd Vinet (judd) - Wednesday, 19 January 2005, 18:40 GMT
Opened by Sander Hekman (RedHead) - Wednesday, 19 January 2005, 14:51 GMT
Last edited by Judd Vinet (judd) - Wednesday, 19 January 2005, 18:40 GMT
|
DetailsI have just installed Arch Linux on my home linux server, no problems at all en running smoothly now.
But i did noticed that the dhcpcd was running double. the command Code: ps aux | grep dhcp gives me the following: Code: root 1140 0.0 0.1 1412 536 ? S<s 18:12 0:00 /usr/sbin/dhcpcd -d -t 30 -h cc758314-b eth0 root 1281 0.0 0.1 1412 552 ? Ss 18:12 0:00 /usr/sbin/dhcpcd -d -t 30 -h cc758314-b eth0 sander 1617 0.0 0.1 3476 580 pts/0 S+ 18:13 0:00 grep dhcp After some trouble shooting of my own see also http://bbs.archlinux.org/viewtopic.php?t=9282, i found the following, that the hotplug scripts also starts op the network interface with dhcpcd but later on also the rc scripts start op the dhcpcd. |
This task depends upon
Closed by Judd Vinet (judd)
Friday, 11 November 2005, 18:48 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed for next build of initscripts
Friday, 11 November 2005, 18:48 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed for next build of initscripts
You can solve this by removing eth0 from the INTERFACES array in rc.conf, hotplug puts up eth0 when it detects it.
The original ifup function has a check for dhcpcd's pid file (i.e. if [ -f /etc/dhcpcd/dhcpcd-eth0.pid ];). I don't think the hotplug_ifup has this. I'd assume the hotplug version would keep the same check and simply do nothing (returning success so hotplug doesn't balk) in the case of it already existing...
Is it definitely hotplug's fault? If you disable hotplug and reboot, do you still have two dhcp processes?
What I found problematic from hotplug and network initscript is the latter:
it should check whether ifaceX is already up or not.
For testing purposes of this really good distro and curiosity for Kivio, I made a simple diagram of what might be going on with this double-dhcp problem. For Your delight - please see the attached pdf :)