[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH] CA-40601: hup syslog, not xapi, when rotating audit.log



 scripts/audit-logrotate |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1271783266 -3600
# Node ID 08b52dac19a6e536cfca9cc50c57802bf333b511
# Parent  03c0dc63ddb2c5e8c38d3b90d3d4000e38393bf3
CA-40601: hup syslog, not xapi, when rotating audit.log

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r 03c0dc63ddb2 -r 08b52dac19a6 scripts/audit-logrotate
--- a/scripts/audit-logrotate   Tue Apr 20 16:18:04 2010 +0100
+++ b/scripts/audit-logrotate   Tue Apr 20 18:07:46 2010 +0100
@@ -2,6 +2,7 @@
     missingok
     sharedscripts
     postrotate
-       /opt/xensource/bin/xe log-reopen 2> /dev/null || true
+      /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || 
true
+      /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || 
true
     endscript
 }

Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.