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
This commit is contained in:
linggao 2008-09-12 19:25:50 +00:00
parent d0011e6ff8
commit f05015f0d6

View File

@ -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