From 1a970c8dd994d74ab8e7d468cf834135c2d4fc01 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 15 May 2012 07:24:11 +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@12707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatpostinit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT/postscripts/xcatpostinit b/xCAT/postscripts/xcatpostinit index af6902714..9b6636b9b 100755 --- a/xCAT/postscripts/xcatpostinit +++ b/xCAT/postscripts/xcatpostinit @@ -19,7 +19,7 @@ if [ -x /etc/rc.d/init.d/functions ]; then . /etc/rc.d/init.d/functions fi -logger -t xcat "$0: action is $1" +logger -t xcat -p local4.info "$0: action is $1" case $1 in restart) $0 stop @@ -27,11 +27,11 @@ restart) ;; status) echo -n "xcatpostinit runs only at boot, runs additional post scripts" - logger -t xcat "xcatpostinit runs only at boot, runs additional post scripts" + logger -t xcat -p local4.info "xcatpostinit runs only at boot, runs additional post scripts" ;; stop) echo -n "nothing to stop " - logger -t xcat "nothing to stop" + logger -t xcat -p local4.info "nothing to stop" ;; start) # Node is stateless by default @@ -58,10 +58,10 @@ start) # Run $SCRIPT according to node type if [ $STATELITE -ne 0 ]; then - logger -t xCAT "Call $SCRIPT for statelite mode" + logger -t xCAT -p local4.info "Call $SCRIPT for statelite mode" "$SCRIPT" 4 else - logger -t xCAT "Call $SCRIPT for stateless mode" + logger -t xCAT -p local4.info "Call $SCRIPT for stateless mode" "$SCRIPT" fi ;;