FS#6959 - Error on network restart
Attached to Project:
Arch Linux
Opened by Jules (Misfit138) - Friday, 20 April 2007, 01:12 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 21 October 2007, 09:06 GMT
Opened by Jules (Misfit138) - Friday, 20 April 2007, 01:12 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 21 October 2007, 09:06 GMT
|
Details
Arch 0.8 2.6.19 Beyond,
current, community, extra repos Bug:When doing /etc/rc.d/network restart the following error is obtained: Error, wlan0: dhcpcd already running (/var/run/dhcpcd-wlan0.pid) Fix as follows: Line 44 in /etc/rc.d/network rm -f /etc/dhcpc/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1 must be changed to: rm -f /var/run/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1 |
This task depends upon
Closed by Thomas Bächler (brain0)
Sunday, 21 October 2007, 09:06 GMT
Reason for closing: Fixed
Additional comments about closing: second fix applied to initscripts-git
Sunday, 21 October 2007, 09:06 GMT
Reason for closing: Fixed
Additional comments about closing: second fix applied to initscripts-git
I propose the attached patch to fix both issues.
The network script does not actually bring up an interface that is already up, thus after killing dhcpcd, interface is not brought down. Then from the start() function, dhcpcd will not be executed since this interface is already up. So in the end, we get an interface UP without any IP address.
###############################################################
> netcfg my-dhcp-profile
:: Starting network profile: my-dhcp-profile [DONE]
> netcfg --stopall
:: Shutting down interface: eth0 [DONE]
> netcfg my-dhcp-profile
:: Starting network profile: my-dhcp-profile [BUSY]
Error, eth0: dhcpcd already running (/var/run/dhcpcd-eth0.pid)
[FAIL]
###############################################################
A 'killall dhcpcd' is then required before the network profile can be brought back up.
The second part of the lanjelot`s patch is not applied. It` s necessary use /etc/rc.d/network two times to restart network. First time the network script kills dhcpd and second time it brings down the interface.