[Bug 810736] [NEW] logrotate script needs to notify all samba processes when logs are rotated

Simon Déziel 810736 at bugs.launchpad.net
Thu Jul 14 20:47:50 UTC 2011


Public bug reported:

After the log rotation, logrotate needs to notify all samba processes to
release their open file descriptors on the log files.

The current logrotate configuration file does not do so and only notify the process that has it's PID stored /var/run/samba/.
This is wrong as other child will keep logging to the "deleted" files and may use all the disk space. Those "deleted" files are not showing in ls output but they are still consuming space in the file system.

I think the right solution to this bug would be to have logrotate to
call "smbcontrol all reload-config". This solution was proposed by
Andrew Bartlett, a Samba developer, in this email http://bugs.debian.org
/cgi-bin/bugreport.cgi?bug=160076#25.

I have confirmed that this problem affects Samba from Lucid to Natty at
least.

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/810736

Title:
  logrotate script needs to notify all samba processes when logs are
  rotated

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/810736/+subscriptions



More information about the Ubuntu-server-bugs mailing list