From 3aa61c9a08c97691ac4a656ae07889c9727b0238 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 15 May 2012 08:05:28 +0000 Subject: [PATCH] fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12711 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/mkhyperv | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT/postscripts/mkhyperv b/xCAT/postscripts/mkhyperv index 4619a400c..827ad6b15 100755 --- a/xCAT/postscripts/mkhyperv +++ b/xCAT/postscripts/mkhyperv @@ -77,17 +77,17 @@ stop () { grep -q GenuineIntel /proc/cpuinfo && /sbin/modprobe -r kvm-intel grep -q AuthenticAMD /proc/cpuinfo && /sbin/modprobe -r kvm-amd } -logger -t xcat "KVM $1" +logger -t xcat -p local4.info "KVM $1" case "\$1" in start) echo -n $"Starting KVM: " - logger -t xcat "Starting KVM:" + logger -t xcat -p local4.info "Starting KVM:" start echo ;; stop) echo -n $"Shutting down KVM: " - logger -t xcat "Shutting down KVM:" + logger -t xcat -p local4.info "Shutting down KVM:" stop echo ;; @@ -96,9 +96,9 @@ case "\$1" in ;; *) echo "Unknown command: \$1" >&2 - logger -t xcat "Unknown command: \$1" + logger -t xcat -p local4.info "Unknown command: \$1" echo "Valid commands are: start, stop, status" >&2 - logger -t xcat "Valid commands are: start, stop, status" + logger -t xcat -p local4.info "Valid commands are: start, stop, status" exit 1 esac EOF @@ -126,7 +126,7 @@ disconnect_targets() { iscsiadm -m node --logout } -logger -t xcat "iscsi $1" +logger -t xcat -p local4.info "iscsi $1" case "\$1" in start) connect_targets @@ -139,9 +139,9 @@ case "\$1" in ;; *) echo "Unknown command: \$1" >&2 - logger -t xcat "Unknown command: \$1" + logger -t xcat -p local4.info "Unknown command: \$1" echo "Valid commands are: start, stop, status" >&2 - logger -t xcat "Valid commands are: start, stop, status" + logger -t xcat -p local4.info "Valid commands are: start, stop, status" exit 1 esac EOF