From af5a4c667043dc278813e842979006868251e5bd Mon Sep 17 00:00:00 2001 From: chenglch Date: Thu, 7 Jul 2016 23:10:58 -0400 Subject: [PATCH] Only try to kill ssl listener process at first Previously service xcatd stop or systemctl stop xcatd.service will send TERM signal to all the processes of xcatd on some platform which support this feature. Close-issue: #1008 #537 --- xCAT-server/etc/init.d/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/etc/init.d/xcatd b/xCAT-server/etc/init.d/xcatd index 512bb3a91..309d29e99 100755 --- a/xCAT-server/etc/init.d/xcatd +++ b/xCAT-server/etc/init.d/xcatd @@ -101,7 +101,7 @@ stop) echo exit 0 fi - kill -TERM -`cat /var/run/xcatd.pid` + kill -TERM `cat /var/run/xcatd.pid` i=0; while $STATUS > /dev/null 2>&1 && [ $i -lt 30 ]; do sleep .1