From 46d1dd9af276377c2a91d2ca6945bcc09ffe3873 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 9 Jul 2010 15:17:47 +0000 Subject: [PATCH] -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 --- xCAT-server/etc/init.d/xcatd | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/xCAT-server/etc/init.d/xcatd b/xCAT-server/etc/init.d/xcatd index 215297faf..e04b5270b 100755 --- a/xCAT-server/etc/init.d/xcatd +++ b/xCAT-server/etc/init.d/xcatd @@ -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