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
This commit is contained in:
immarvin 2012-05-15 08:28:29 +00:00
parent 44d42d823e
commit 0765c506a7

View File

@ -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