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