From 877f3182f92ff927349f7dd99fdb2a46bbaac71b Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 17 Feb 2011 08:33:15 +0000 Subject: [PATCH] Add INUCLIENTS support for AIX. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8875 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/xCAT-rmc.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-rmc/xCAT-rmc.spec b/xCAT-rmc/xCAT-rmc.spec index b63506d1f..4e6264169 100644 --- a/xCAT-rmc/xCAT-rmc.spec +++ b/xCAT-rmc/xCAT-rmc.spec @@ -85,7 +85,12 @@ rm -rf $RPM_BUILD_ROOT %else #restart the xcatd on if xCAT or xCATsn is installed already if [ -f $RPM_INSTALL_PREFIX0/sbin/xcatd ]; then - XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/restartxcatd -r + if [ -n "$INUCLIENTS" ] && [ $INUCLIENTS -eq 1 ]; then + #Do nothing in not running system + echo "Do not restartxcatd in not running system" + else + XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/restartxcatd -r + fi fi %endif exit 0