bug fix in xCAT-server.spec

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2696 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-02-03 17:16:17 +00:00
parent 94ade30137
commit 998ccbd977

View File

@ -163,9 +163,10 @@ else
echo "Unable to register init scripts on this system"
fi
if [ "$1" -gt "1" ]; then #only on upgrade...
#migration issue for monitoring
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab filename=monitorctrl.pm notification -d
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
#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