add restartxcatd SF defect 3203

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14479 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-11-29 17:27:56 +00:00
parent c756bf2cf3
commit d5e7813365

View File

@ -130,7 +130,8 @@ fi
if [ -f /etc/xCATMN ]; then
rm /etc/xCATMN
fi
fi
# for install or upgrade restart the daemon
%ifos linux
if [ -e "/etc/redhat-release" ]; then
apachedaemon='httpd'
@ -143,14 +144,14 @@ fi
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
XCATROOT=$RPM_INSTALL_PREFIX0 /etc/init.d/xcatd restart
/etc/init.d/$apachedaemon reload
fi
fi
echo "xCATsn is now installed"
%else
# start xcatd on AIX
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/restartxcatd
echo "xCATsn is now installed"
%endif
fi
%clean