[Bug 529290] Re: logrotate script needs to be updated for Upstart conversion
Simon Déziel
529290 at bugs.launchpad.net
Tue Jun 28 22:44:17 UTC 2011
The upstart job tries to start smbd in foreground mode but apparently
fails to do so :
standard input is not a socket, assuming -D option
Even if this foreground operation was to work, the man page says that
child processes will still be created. Those too need to be notified
about the log rotation IMO.
One of the possible solutions is to use smbcontrol to notify all related
daemons (smbd, nmbd and winbindd) :
smbcontrol all reload-config
This problem was apparently introduced in http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=160076 where killall was removed from the
logrotate configuration.
** Bug watch added: Debian Bug tracker #160076
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160076
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/529290
Title:
logrotate script needs to be updated for Upstart conversion
Status in “samba” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: samba
/etc/logrotate.d/samba produces error output, because the smbd stanza
calls 'invoke-rc.d --quiet samba reload > /dev/null' in a postrotate
stanza (no stderr redirection, nor should there be). This should be
updated to use Upstart's facilities. I suspect the same may go for
the nmbd stanza, which currently calls '[ ! -f /var/run/samba/nmbd.pid
] || kill -HUP `cat /var/run/samba/nmbd.pid`'.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/529290/+subscriptions
More information about the foundations-bugs
mailing list