Was there a post-rotation command for access and error logs?

3 posts / 0 new
Last post
#1 Mon, 06/17/2019 - 06:24
triphop

Was there a post-rotation command for access and error logs?

Hello,

I mistakenly deleted these log files rotation of my sites:

/var/log/virtualmin/<mywebsite>_access_log
/var/log/virtualmin/<mywebsite>_error_log

So I put them back, but I see in the log files rotation panel that some logs have a "Post-rotation command". Do you know if this was the default case for these access and error logs?

Thanks a lot for your help !

Wed, 06/26/2019 - 05:44
triphop

Nobody to help me? : '(

Wed, 06/26/2019 - 08:54
scotwnw

This is whats in mine, assume its the default as I've never messed with rotation settings. Im on Ubuntiu 16.04. Your distro may be different.

In the "Commands to run after rotation" box

/usr/sbin/apache2ctl graceful ; sleep 5

Topic locked