diff --git a/xCAT-rmc/xCAT-rmc.spec b/xCAT-rmc/xCAT-rmc.spec index 656ee794a..986d5a24e 100644 --- a/xCAT-rmc/xCAT-rmc.spec +++ b/xCAT-rmc/xCAT-rmc.spec @@ -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 diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index cedff19f2..105684e00 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -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