[Linux-HA] "failover" logrotate and cron-jobs related to a service

Helmut Wollmersdorfer helmut.wollmersdorfer at gmx.at
Fri Mar 18 05:52:34 MST 2005


To have log-stats for Apache VirtualHosts working after a failover to 
the secondary I did the following:

- logs of VHosts go to /ha/log/apache2 (on a DRBD device),
   default logs remain at local /var
- created /etc/cron.daily/logrotate-ha, including
   test -d /ha/log
- created an appropriate /etc/logrotate-ha.conf

This will need to have an extra /var/lib/logrotate/status on the DRBD 
device too?

The cron entries for Webalizer(s) have an additional
     test -r $LOGFILE

Any comments or better solutions?

Helmut Wollmersdorfer



More information about the Linux-HA mailing list