changed spec files to use the new command xcatstart to restart the xcatd on AIX

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2008-10-01 16:08:51 +00:00
parent f0ebd0073f
commit e9d0f104ad
2 changed files with 10 additions and 6 deletions

View File

@ -55,4 +55,13 @@ rm -rf $RPM_BUILD_ROOT
%changelog
%post
%ifos linux
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
/etc/init.d/xcatd restart
fi
%else
#restart the xcatd
$XCATROOT/sbin/xcatstart
%endif

View File

@ -161,12 +161,7 @@ fi
if [ "$1" -gt "1" ]; then #only on upgrade for AIX...
#migration issue for monitoring
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab filename=monitorctrl.pm notification -d
#restart the xcatd
pids=`ps xww |grep xcatd|grep -v grep|cut -c1-7`
if [ ! -z "$pids" ]; then
kill $pids
fi
$XCATROOT/sbin/xcatd&
$XCATROOT/sbin/xcatstart
fi
%endif