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
This commit is contained in:
parent
4467a5bb20
commit
1a970c8dd9
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user