2010/3/4 Christian PERRIER <bubu...@debian.org> > Quoting Kevin Baradon (kevin.bara...@gmail.com): > > Package: samba-common > > Version: 2:3.4.6~dfsg-1 > > Severity: minor > > Tags: patch > > > > invoke-rc.d warns me during every system shutdown it is invoked in an > invalid context. > > > > This command is called by /etc/dhcp3/dhclient-enter-hooks.d/samba to > reload samba configuration file on DHCP release (my IP address comes from > DHCP server). > > But smbd daemon isn't running anymore at that time (system shutdown). > > > > Following patch checks for PID file existence before calling invoke-rc.d > and fixes the warning. > > The warning comes from......start-stop-daemon that checks for such > existence. > > Indeed, the s-s-d call for "reload" in /etc/init.d/samba doesn't use > "--quiet". *This* is what would make the reload action quiet in your > case...and in any other case, while your patch only fixes the DHCP > release hook script. > > I tried adding --quiet to s-s-d call in /etc/init.d/samba. Same message still appears. In my opinion this is the call of invoke-rc.d from DHCP hook script which causes this message, and not the call of s-s-d from samba initscript.
Thus my patch which avoids this call when unnecessary. > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAkuQIꂑൎ廚찁䏒퇔䀉턾꾰�Ὄ뤁濏⏄� > yC0An2vnset44XFt/BfirfjI7a5Y53Zz > =yRf8 > -----END PGP SIGNATURE----- > >