We have a server with Litespeed and I've noticed a few things with logrotation that doesn't look quite right.
1. Postrotate script and pid file
The standard logrotate config (
2. Litespeed rotation/keep days
There are a lot of logs in
2b. There is also a
Any insight into this would be appreciated! We're fairly new to Litespeed still.
1. Postrotate script and pid file
The standard logrotate config (
/etc/logrotate.d/apache
) is using the pid file /var/run/httpd.pid
in the postrotate
script. This pid file doesn't exist, and should probably be changed to /var/run/lshttpd.pid
when Litespeed is being used, assuming that it also supports the -USR1
signal for reopening logfiles.2. Litespeed rotation/keep days
There are a lot of logs in
/usr/local/lsws/logs/
which is not rotated by the standard logrotate, but instead are rotated based on the internal configuration of Litespeed itself. When looking at the Litespeed WebAdmin Console, there are two settings related to rotation, Rolling Size
and Keep Days
. For the "Server Log", Keep Days is not set, and it appears that means old log files will never be removed?2b. There is also a
/usr/local/lsws/logs/stderr.log
and /usr/local/lsws/logs/lsrestart.log
that doesn't seem to be rotated by anything at all, since the WebAdmin Console only mentions error.log
and access.log
files with rotation configs.Any insight into this would be appreciated! We're fairly new to Litespeed still.