11 Dec
2009
11 Dec
'09
9:33 a.m.
On Tue, 2009-12-08 at 09:59 -0600, Tim Rupp wrote:
will syslog-ng re-open it's log files if it finds that the size of the log has suddenly decreased or the inode has changed or something similar that may be caused by a logrotate? Or should I just get in the habit of sighup'ing the process?
you need to SIGHUP the process right now. I'd be reluctant to continously stat a destination file to see if the inode changed, that'd be an overhead in syslog-ng performance. Also, I'm thinking about adding a way to reopen destination files without having to re-read the configuration (which is way more complex than merely reopening destination files) -- Bazsi