WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-40601: hup syslog, not xapi, when rotating audit.log
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Tue, 20 Apr 2010 18:09:01 +0100
Delivery-date: Tue, 20 Apr 2010 10:10:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-40601: hup syslog, not xapi, when rotating audit.log, Marcus Granado <=