[Pkg-samba-maint] Bug#572483: Bug#572483: samba-common: invoke-rc.d warning when doing system shutdown
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
> 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
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)
> -----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pkg-samba-maint