Bug#652942: dhcp hook runs reload on shutdown (after service has been stopped)

December 21st, 2011 - 07:30 pm ET by Michael Biebl | Report spam
Package: samba-common
Version: 2:3.6.1-3
Severity: important

Hi,

if you are using ifupdown and dhcp to manage your network device,
you'll get the following message on shutdown

INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
Using makefile-style concurrent boot in runlevel 0.
Stopping deferred execution scheduler: atd.
Stopping MTA: exim4_listener.
Stopping VirtualBox Additions.
Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Stopping Samba daemons: nmbd smbd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds...done.
Stopping enhanced syslogd: rsyslogd.
Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/08:00:27:6f:bd:96
Sending on LPF/eth0/08:00:27:6f:bd:96
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.0.2.2 port 67
invoke-rc.d: --
invoke-rc.d: WARNING: 'invoke-rc.d samba reload' called
invoke-rc.d: during shutdown sequence.
invoke-rc.d: enabling safe mode: initscript policy layer disabled
invoke-rc.d: --
Reloading /etc/samba/smb.conf: smbd only.
done.
Saving the system clock.
Deactivating swap...done.
Unmounting local filesystems...done.
Will now halt.


See how the reload happens after samba has already been stopped.
This reload seems to be triggered by the dhcp enter hook.

Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages samba-common depends on:
ii debconf [debconf-2.0] 1.5.41
ii ucf 3.0025+nmu2

Versions of packages samba-common recommends:
ii samba-common-bin 2:3.6.1-3

samba-common suggests no packages.




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Christian PERRIER
December 22nd, 2011 - 03:10 am ET | Report spam

Quoting Michael Biebl ():
Package: samba-common
Version: 2:3.6.1-3
Severity: important

Hi,

if you are using ifupdown and dhcp to manage your network device,
you'll get the following message on shutdown



Hello Michael,

Apart from the annoying messge displayed, do you see a specific
problem with this? My concern is that it might not be so simple to add
code in the hook meant to detect that the interface is released
*during shutdown* and not for some other reason.

What's suggested here is not doing the reload when an interface DHCP
lease is released during system shutdown but we want to keep the
reload when the lease is released in other situations. This might be
somehow tricky (is there an environment variable or something like
this that could be tested in the script?).








To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics