<div class="gmail_quote">2010/3/4 Christian PERRIER <span dir="ltr"><<a href="mailto:bubulle@debian.org">bubulle@debian.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Quoting Kevin Baradon (<a href="mailto:kevin.baradon@gmail.com">kevin.baradon@gmail.com</a>):<br>
> Package: samba-common<br>
> Version: 2:3.4.6~dfsg-1<br>
> Severity: minor<br>
> Tags: patch<br>
><br>
> invoke-rc.d warns me during every system shutdown it is invoked in an invalid context.<br>
><br>
> 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).<br>
> But smbd daemon isn't running anymore at that time (system shutdown).<br>
><br>
> Following patch checks for PID file existence before calling invoke-rc.d and fixes the warning.<br>
<br>
The warning comes from......start-stop-daemon that checks for such<br>
existence.<br>
<br>
Indeed, the s-s-d call for "reload" in /etc/init.d/samba doesn't use<br>
"--quiet". *This* is what would make the reload action quiet in your<br>
case...and in any other case, while your patch only fixes the DHCP<br>
release hook script.<br>
<br></blockquote><div><br>I tried adding --quiet to s-s-d call in /etc/init.d/samba. Same message still appears.<br>
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.<br>
<br>
Thus my patch which avoids this call when unnecessary.<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAkuQIꂑൎ廚찁䏒퇔䀉턾꾰�Ὄ뤁濏⏄�<br>
yC0An2vnset44XFt/BfirfjI7a5Y53Zz<br>
=yRf8<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div>