Log rotation post-rotation command

Since some time the log rotation config which are created with a new virtual server are wrong. The ' Post-rotation command' changed and I don't know why. In the apache module config everything seams ok. Where can I configure this setting?

Correct config:

/home/bromalux.com/logs/access_log

/home/bromalux.com/logs/error_log Weekly svcadm refresh cswapache2

Wrong config:

/home/cariola.nl/logs/access_log

/home/cariola.nl/logs/error_log Weekly graceful

Status: 
Closed (fixed)

Comments

The fix is to go to Webmin -> Servers -> Apache Webserver -> Module Config, and set the "Command to re-read configuration" to "svcadm refresh cswapache2" .

The underlying issue is that the apachectl and apache2ctl commands were not found ... where are they located on your system?

The' Command to re-read configuration' is set to 'Same as apply command' and that is set to 'svcadm refresh cswapache2'. It is never changed after initial configuration. The logrotate command used to set the post-rotation command correct. I don't want to use apachectl because that can confuse svcadm.

Ok, I see the bug - Virtualmin isn't respecting the "Command to apply configuration" in this case - I'll fix that in the next release.

The work-around till then is to set the "Command to apply configuration" to "svcadm refresh cswapache2"

Automatically closed -- issue fixed for 2 weeks with no activity.