Bug still in our queue.
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/810736
Title:
logrotate script needs to notify all samba processes when logs are
rotated
To manage notifications ab
bionic onwards is using smbcontrol, and I still see some processes using
the (deleted) rotated files. At least new log messages are going to the
right place (log.smbd), so I'm not sure what's going on. Checked with
eoan's samba 4.10.0.
--
You received this bug notification because you are a membe
Still confirmed, even in cosmic with samba 4.8. The smbcontrol reload-
config action still leaves processes hanging on to the rotated file.
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/81073
Oh, how silly of me. The 8841 process that shows in that fuser list is a
tail -f I had open in another terminal.
That being said, there were still other processes, samba ones, which
held an open fd to the log file, so this bug is still valid. I should
just be more careful with my tail -f next time
I just saw this bug while merging Debian's latest samba into ubuntu,
because it had this changelog snippet:
* Fix logrotate for /var/log/samba/log.samba to send SIGHUP to all processes
of the service (systemd only)
The logrotate script now uses smbcontrol reload-config (not
"all", which is
** Changed in: samba (Ubuntu)
Importance: Undecided => Medium
** Changed in: samba (Ubuntu)
Status: New => Confirmed
--
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
Tit
** Description changed:
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 w
Steps to observe the problem :
# Only one log file exists
ls -1 /var/log/samba
cores
log.smbd
# Force the rotation
logrotate -f /etc/logrotate.d/samba
# The log is rotated but the old log file is missing (was rm'ed and does not
show in ls)
ls -1 /var/log/samba
cores
log.smbd.1.gz
# with lsof w