[Pkg-samba-maint] Bug#572483: Bug#572483: samba-common: invoke-rc.d warning when doing system shutdown

Kevin Baradon kevin.baradon at gmail.com
Mon Apr 5 10:08:35 UTC 2010


2010/3/4 Christian PERRIER <bubulle at debian.org>

> Quoting Kevin Baradon (kevin.baradon at 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-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20100405/d3dff29e/attachment.htm>


More information about the Pkg-samba-maint mailing list