From f05015f0d603a5797fef0e2f126667becbd97494 Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 12 Sep 2008 19:25:50 +0000 Subject: [PATCH] fixed migration issue for monitoring on AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2157 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-server.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index 23e102cdf..291347e93 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -148,10 +148,22 @@ else fi if [ "$1" -gt "1" ]; then #only on upgrade... if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image - XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab filename=monitorctrl.pm notification -d #migration issue for monitoring + #migration issue for monitoring + XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab filename=monitorctrl.pm notification -d /etc/init.d/xcatd restart fi fi +%else +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& +fi %endif %preun