From 0765c506a7e62fb2d5f9cd528789a4f0134ac72e Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 15 May 2012 08:28:29 +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@12717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xcatchroot | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-client/bin/xcatchroot b/xCAT-client/bin/xcatchroot index e1b80ac48..d52e71523 100755 --- a/xCAT-client/bin/xcatchroot +++ b/xCAT-client/bin/xcatchroot @@ -128,7 +128,7 @@ cmd_string=$1 # check for cmd string if [[ $cmd_string = "" ]] ; then echo "ERROR: A command strng is required." - echo "xcatchroot: ERROR: A command strng is required." | logger -t xcat + echo "xcatchroot: ERROR: A command strng is required." | logger -t xcat -p local4.err echo $usage exit 1 fi @@ -136,7 +136,7 @@ fi # chk for osimage ?? if [[ $osimage = "" ]] ; then echo "ERROR: An xCAT osimage name is required." - echo "xcatchroot: ERROR: An xCAT osimage name is required." | logger -t xcat + echo "xcatchroot: ERROR: An xCAT osimage name is required." | logger -t xcat -p local4.err echo $usage exit 1 fi @@ -151,7 +151,7 @@ spot=`/opt/xcat/bin/lsdef -t osimage -o $osimage -i spot | grep spot | cut -f2 - if [[ $spot = "" ]] ; then echo "ERROR: Could not get spot name from xCAT osimage definition." - echo "xcatchroot: ERROR: Could not get spot name from xCAT osimage definition." | logger -t xcat + echo "xcatchroot: ERROR: Could not get spot name from xCAT osimage definition." | logger -t xcat -p local4.err exit 1 fi @@ -181,7 +181,7 @@ if ${LSNIM} $spot >/dev/null ; then else echo "ERROR: Cannot use chroot with remote resources $spot." - echo "xcatchroot: ERROR: Cannot use chroot with remote resources $spot." | logger -t xcat + echo "xcatchroot: ERROR: Cannot use chroot with remote resources $spot." | logger -t xcat -p local4.err exit 1 fi fi @@ -207,7 +207,7 @@ if ${LSNIM} $lpp_source >/dev/null ; then lpp_source=`${LSNIM} -a location $lppObj | ${AWK} '/location/ {print $3}'` else echo "ERROR: Cannot use chroot with remote resource $lpp_source." - echo "xcatchroot: ERROR: Cannot use chroot with remote resource $lpp_source." | logger -t xcat + echo "xcatchroot: ERROR: Cannot use chroot with remote resource $lpp_source." | logger -t xcat -p local4.err exit 1 fi fi @@ -215,7 +215,7 @@ fi # last sanity check before chroot session is attempted if [[ ! -d $location ]] ; then echo "ERROR: Unable to proceed. Check resource name(s) also verify path location(s)." - echo "xcatchroot: ERROR: Unable to proceed. Check resource name(s) also verify path location(s)." | logger -t xcat + echo "xcatchroot: ERROR: Unable to proceed. Check resource name(s) also verify path location(s)." | logger -t xcat -p local4.err exit 1 else