-Rework init script to take advantage of 'nonstop' xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
56e025c82d
commit
46d1dd9af2
@ -70,14 +70,19 @@ fi
|
||||
|
||||
case $1 in
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
echo -n "Restarting xCATd "
|
||||
if [ -r /etc/profile.d/xcat.sh ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
fi
|
||||
xcatd -p /var/run/xcatd.pid && $LOG_SUCCESS || $LOG_FAILURE
|
||||
;;
|
||||
reload)
|
||||
$0 stop
|
||||
echo -n "(Reloading) "
|
||||
echo -n "Reloading xCATd "
|
||||
export XCATRELOAD=yes
|
||||
$0 start
|
||||
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)
|
||||
$STATUS
|
||||
|
Loading…
Reference in New Issue
Block a user