Fixed more problems in xcatd init.d script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5c0f072f1a
commit
7b6db33399
@ -71,29 +71,29 @@ fi
|
||||
case $1 in
|
||||
restart)
|
||||
echo -n "Restarting xCATd "
|
||||
$STATUS >& /dev/null
|
||||
if [ "$?" == "0" ]; then
|
||||
if ! nodels --version |grep 'Version 2.6'; then #upgrade or downgrade from another major release, stop it just in case
|
||||
$0 stop
|
||||
fi
|
||||
fi
|
||||
if [ -r /etc/profile.d/xcat.sh ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
fi
|
||||
$STATUS >& /dev/null
|
||||
if [ "$?" == "0" ]; then
|
||||
if ! nodels --version |grep -q 'Version 2.6'; then #upgrade or downgrade from another major release, stop it just in case
|
||||
$0 stop
|
||||
fi
|
||||
fi
|
||||
xcatd -p /var/run/xcatd.pid && $LOG_SUCCESS || $LOG_FAILURE
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reloading xCATd "
|
||||
if [ -r /etc/profile.d/xcat.sh ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
fi
|
||||
$STATUS >& /dev/null
|
||||
if [ "$?" == "0" ]; then
|
||||
if ! nodels --version |grep 'Version 2.6'; then #upgrade or downgrade from another major release, stop it just in case
|
||||
if ! nodels --version |grep -q 'Version 2.6'; then #upgrade or downgrade from another major release, stop it just in case
|
||||
$0 stop
|
||||
fi
|
||||
fi
|
||||
export XCATRELOAD=yes
|
||||
if [ -r /etc/profile.d/xcat.sh ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
fi
|
||||
xcatd -p /var/run/xcatd.pid && $LOG_SUCCESS || $LOG_FAILURE
|
||||
;;
|
||||
status)
|
||||
|
Loading…
Reference in New Issue
Block a user