From d5e7813365fda19ce7815dc9b71a1d502139ff4f Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 29 Nov 2012 17:27:56 +0000 Subject: [PATCH] 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 --- xCATsn/xCATsn.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 99760ab64..9dfff25e2 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -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