[Linux-cluster] Rotating apache logs when is configured as a resource under RHCS
carlopmart
carlopmart at gmail.com
Mon Sep 19 09:09:40 UTC 2011
Hi all,
I have configured an apache resource under cluster.conf like this:
(both nodes are RHEL6.1)
<apache config_file="/data/config/etc/httpd/conf/httpd-mirror.conf"
name="httpd-mirror" server_root="/data/config/etc/httpd" shutdown_wait="3"/>
My question is: which is the best form to rotate apache logs using
logrotate configuration??
Is this a possible solution:
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
if [ -f /var/run/cluster/apache/apache:httpd-mirror.pid ]; then
clusvcadm -R httpd-mirror
fi
endscript
}
--
CL Martinez
carlopmart {at} gmail {d0t} com
More information about the Linux-cluster
mailing list