On Fri, 29 Oct 2010, Maik Ehinger wrote:
Hi,
i deleted the log file while rsyslog is running by accident.
If i look at the debug output (rsyslog -c5 -d -n) all seems fine. Although
the log file doesn't exist!
Is this expexed behaviour? No warning at all?
If i restart rsyslog the file will be created and all is fine again.
you don't need to do a full restart, a kill -HUP should be enough to have
rsyslog re-open the files.
it would be very slow and inefficent to have rsyslog open and close the
file for each write, but by keeping the file open, if you rm or mv a
logfile, rsyslog will keep writing to that same file (in it's new location
with a mv to the same filessytem, otherwise to a file that still exists
and takes up disk space, but that nothing else can open)
David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com