From 6403bb339d45b0a5fd0b2aa7aa59ec312c6ba2dd Mon Sep 17 00:00:00 2001 From: Saksham Srivastava Date: Thu, 16 May 2013 20:56:51 +0530 Subject: [PATCH] CLOUDSTACK-3874: Adding method to cloud-early-config to allow updation of systemvms log rotation Signed-off-by: Abhinandan Prateek --- .../config/etc/init.d/cloud-early-config | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 02af6026639..c0a7189d7a4 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -194,6 +194,122 @@ patch() { return 0 } +patch_log4j() { +log_it "Updating log4j-cloud.xml" +cat << "EOF" > /usr/local/cloud/systemvm/conf/temp.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EOF +mv /usr/local/cloud/systemvm/conf/temp.xml /usr/local/cloud/systemvm/conf/log4j-cloud.xml +} setup_interface() { local intfnum=$1 local ip=$2 @@ -1048,6 +1164,7 @@ start() { log_it "Detected that we are running inside $hyp guest" get_boot_params patch + patch_log4j parse_cmd_line change_password case $TYPE in