I have this issue with my lighttpd
installation where logging to access.log
will cease once the default log-rotating software erases my access.log
after copying it to access.log-YYYYMMDD
. I have to stop and restart the service to get the logging to continue.
Here's the uname
and centos-release
info for the dedi this is happening on:
np ~ > uname -a && cat /etc/centos-release
Linux sevlet 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.0.1406 (Core)
I have no idea what log-rotation software comes pre-installed on this box, and I have no idea why lighttpd completely stops writing to access.log
once the file gets rotated out. Anyone have any idea what's going on and/or how to fix it?
Solved!
Anyone having this problem or a similar one on a minimal CentOS 7 install, please read:
@chutz suggested I take a look at the lighttpd
configuration in /etc/logrotate.d/
. The default configuration for lighttpd
works, but it calls killall
to restart the daemon. A minimal install of CentOS 7 doesn't include killall
.
To install on CentOS:
yum -y install psmisc
Hope this helps someone!