tested on apache 2.2.11
1.tail -F access.log
keep running there, repeat open access.log every 1 second(default 1 second)
2.in another terminal window:
mv access.log access.log.bak
3.then error message for tail:
tail: cannot open 'access.log' for reading: No such file or directory
but still running there
4. after that, access.log not created by apache even a lot of access.
restart apache, access.log created.
now back to watch litespeed's behavior(testing 4.02). in this regards, litespeed is better than apache:in above step 4, without restart lsws, access.log created and access log still working.
the difference is noticed in step 2:
right after mv, litespeed will create an empty access.log file even no access.
but apache won't create access.log until restart.
so a quick guess, make following 2 system call atomic(if not yet) will be even better ?
mv access.log access.log.1 (==>rotate log)
Last edited by auser; 05-03-2009 at 12:04 AM..