#564516 dhcp3-client: weird conflict with samba/resolvconf when shutting down

Package:
isc-dhcp-client
Source:
isc-dhcp
Description:
DHCP client for automatically obtaining an IP address
Submitter:
Fejes Jozsef
Date:
2026-08-05 17:33:38 UTC
Severity:
normal
#564516#5
Date:
2010-01-09 22:20:09 UTC
From:
To:
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.
root@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.

#564516#10
Date:
2010-08-25 05:43:38 UTC
From:
To:
Hi, i'm having exactly the same problem as Jozsef here. Any idea?
#564516#19
Date:
2026-08-05 17:31:09 UTC
From:
To:
Dear submitter,

as the package isc-dhcp has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1143544

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)