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@12678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-05-15 03:20:08 +00:00
parent 6eb6685cc9
commit ebcdc7bbcb

View File

@ -10,7 +10,7 @@ if TIMESERVERS=$(tabdb $SITETAB timeservers 1)
then
:
else
echo "$0: timeservers not defined in $SITETAB" | logger -t xcat
echo "$0: timeservers not defined in $SITETAB" | logger -t xcat -p local4.err
exit
fi
@ -18,19 +18,19 @@ T=$(echo $TIMESERVERS | awk -F, '{print $1}')
if [ -n "$T" -a "$T" != "NA" ]
then
logger -t xcat "Install: sync clock"
ntpdate -bs $T 2>&1 | logger -t xcat
logger -t xcat -p local4.info "Install: sync clock"
ntpdate -bs $T 2>&1 | logger -t xcat -p local4.info
logger -t xcat "$0: the OS version is $OSVER"
logger -t xcat "$0: the OS version is $OSVER" -p local4.info
case "$OSVER" in
rh9|rh[awe]s[34]|rh*5)
hwclock -w 2>&1 | logger -t xcat
hwclock -w 2>&1 | logger -t xcat -p local4.info
;;
rh*)
setclock 2>&1 | logger -t xcat
setclock 2>&1 | logger -t xcat -p local4.info
;;
sles*|suse8*|suse9*|suse10)
clock -w 2>&1 | logger -t xcat
clock -w 2>&1 | logger -t xcat -p local4.info
;;
esac
fi