Package: dhcp3-client
Version: 3.1.3-2
Severity: normal
Hi!
Basically, I see 3 problems: ifdown eth1 seems to kill and restart dhclient for
some reason,
dhclient seems to be killed before deconfiguring interfaces, and during
shutdown dhclient
reloads samba but it's already stopped and it should't even try to call
invoke-rc.d at this
time.
Additional versions: samba 2:3.4.3-2, resolvconf 1.45, dnsmasq 2.51-1, ifupdown
0.6.9. All
affected packages are default installs, eth1 is the uplink ("iface eth1 inet
dhcp"), eth0 is
a lan with dnsmasq and samba on it. I'm using the dependency based init system.
When
starting up, /etc/resolv.conf is empty, then when eth1 comes up, it is the DNS
of my ISP,
then when dnsmasq comes up, it becomes 127.0.0.1 and dnsmasq will use the ISP's
DNS, all
thanks to resolvconf's magic.
The first weird thing is that when I do "ifdown eth1", it starts with some
warning:
=====
There is already a pid file /var/run/dhclient.eth1.pid with pid 4260
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth1/00:04:e2:9f:9e:0f
Sending on LPF/eth1/00:04:e2:9f:9e:0f
Sending on Socket/fallback
DHCPRELEASE on eth1 to 192.168.1.1 port 67
Reloading /etc/samba/smb.conf: smbd only.
r...@wicklow:~#
=====
Also notice that samba is automatically reloaded. Now the real problem comes
when shutting
down, looks like multiple problems: dhclient is killed before ifdown-ing, hence
the stale
warning, then the samba reloading kicks in, which seems to happen at the wrong
time:
=====
...
Saving the system clock.
Deconfiguring network interfaces...There is already a pid file
/var/run/dhclient.eth1.pid 1410
removed stale PID file
Internet Systems Consortium DHCP Client V3.1.3
...
DHCPRELEASE on eth1 to 192.168.1.1 port 67
invoke-rc.d: ====================================================
invoke-rc.d: WARNING: invoke-rc.d called during shutdown sequence
invoke-rc.d: enabling safe mode: initscript policy layer disabled
invoke-rc.d: ====================================================
Reloading /etc/samba/smb.conf: smbd onlyNo process in pidfile
'/var/run/samba/smbd.pid' found
running: none killed.
.
done.
Cleaning up ifupdown...
Deactivating swap...done.
...
=====
Also note that it all doesn't seem dangerous, just very ugly, but still,
something is
definitely wrong here.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dhcp3-client depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii debianutils 3.2.2 Miscellaneous utilities specific t
ii dhcp3-common 3.1.3-2 common files used by all the dhcp3
ii libc6 2.10.2-2 GNU C Library: Shared libraries
dhcp3-client recommends no packages.
Versions of packages dhcp3-client suggests:
pn avahi-autoipd <none> (no description available)
ii resolvconf 1.45 name server information handler
-- debconf information:
dhcp3-client/dhclient-needs-restarting:
dhcp3-client/dhclient-script_moved:
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]