Fix for bug 33818: [ YAIM ] LB needs bkserver logrotate entry
authorDi Qing <Di.Qing@cern.ch>
Thu, 13 Mar 2008 16:45:18 +0000 (16:45 +0000)
committerDi Qing <Di.Qing@cern.ch>
Thu, 13 Mar 2008 16:45:18 +0000 (16:45 +0000)
org.glite.yaim.lb/config/functions/config_jobmon
org.glite.yaim.lb/glite-yaim-lb.spec

index 0965283..68e3512 100644 (file)
@@ -67,6 +67,15 @@ log_level = ERROR
 debug = 0
 EOF
 
+  cat > /etc/logrotate.d/glite-lb-bkserver-rgma << EOF
+# Logrotation for bkserver R-GMA status file.
+$GLITE_WMS_LCGMON_FILE {
+daily
+rotate 9
+missingok
+}
+EOF 
+
   if [ -f /opt/lcg/etc/init.d/lcg-mon-logfile-daemon ]; then
     ln -sf /opt/lcg/etc/init.d/lcg-mon-logfile-daemon /etc/rc.d/init.d/lcg-mon-job-status
     /sbin/chkconfig lcg-mon-job-status on
index 45b6bec..c27e0b0 100644 (file)
@@ -4,7 +4,7 @@ Summary: glite-yaim-lb
 Name: glite-yaim-lb
 Version: 4.0.1
 Vendor: EGEE
-Release:  2
+Release:  3
 License: EGEE
 Group: EGEE
 Source: %{name}.src.tgz