1

How to avoid apache reload when rotating logs?

view story
linux-howto

http://unix.stackexchange.com – I use logrotate to rotate Apache access-, error- and rewrite-logs. My config file looks like this: /apache/*log { compress dateext rotate 365 size=+300M olddir /log/old/apache notifempty missingok lastaction /bin/apache reload endscript } My problem is that whenever a rotation occurs Apache has to be reloaded because Apache doesn't write anymore in the just rotated logfile. Is there a way to avoid Apache reloads everytime logrotate does a rotation? (HowTos)