So I was changing stuff around on my server and looked at the log to see if inotify was properly finding things (there is a bug I filed about 'directory names ending in spaces not being found' so I was removing the spaces that somehow made it in my directory tree.. https://bugs.slimdevices.com/show_bug.cgi?id=15511)
But I then noticed the log wasn't updating... lsof -p on the server showed:squeezebo 10152 squeezeboxserver 6w REG 3,6 392259 271035 /var/log/squeezeboxserver/server.log.1 (deleted) Ie, it still had the old logfile open even though it had now been renamed/gzipped and deleted by logrotate). There are it seems at least 3 bugs here: . the logrotate uses pgrep to find a process name that doesn't exist . changing it to use the proper name (truncated at 15 chars as pgrep only matches the first 15 characters) makes it collide with 'squeezeboxserver-safe' (should use /var/run/squeezeboxserver.pid .. easier and more reliable anyway) . manually sending a USR1 to the server does not seem to re-init the log file anyway... so even if logrotate changed, it still wouldn't work. So, when logrotate decides to rotate a log (ie, it is greater than 200k), SBS stops logging in any useful fashion, saving everything to a deleted file. >From a quick check of the web-svn, it seems this is a problem in 7.4 as well: the processname is wrong in the logrotate, but without reverting to 7.4 I can't tell if the USR1 stuff is broken there, too. See https://bugs.slimdevices.com/show_bug.cgi?id=15672 (Since this has been posted for a couple days but unconfirmed, even though I think it's pretty simple to confirm this isn't just me, I hope someone look at it and verifies the three points above, as well as whether this is true of 7.4.2 before that gets released....) -- snarlydwarf ------------------------------------------------------------------------ snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179 View this thread: http://forums.slimdevices.com/showthread.php?t=75144 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/beta
