Arch Linux

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!
Tasklist

FS#2632 - Problem with dhcp on restarting

Attached to Project: Arch Linux
Opened by Mason Mullins (MasonM) - Thursday, 21 April 2005, 21:39 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I have found a bug in the /etc/rc.d/networl script which causes a problem with dhcpcd assigning an IP address after shutting down/restarting the computer.

In the network script, in the ifdown() section, it read:

if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then
/bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`

which basically just deletes the .pid file without dhcpcd actually releasing anything. Bad way to do it.

I changed it to read:

if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then
/sbin/dhcpcd -k

which causes dhcpcd to release and then delete the .pid and .cache files.

Problem solved.
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 02 May 2005, 02:56 GMT
Reason for closing:  Works for me
Additional comments about closing:  Agreed. The two should effectively be the same.
Comment by Jan de Groot (JGC) - Monday, 25 April 2005, 09:43 GMT
Shouldn't be a problem, since dhcpcd get's a kill signal on the PID it wrote to the .pid file. dhcpcd handles this kill signal in the same way it does on a dhcpcd -k command.

Loading...