From a4f2c1c30080f881c2d2ad06d75803e5c7c7499d Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 12 Sep 2008 14:18:19 +0000 Subject: [PATCH] fixed an migration issue for monitoring git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-server.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index b64bcb1ed..23e102cdf 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -147,9 +147,10 @@ else echo "Unable to register init scripts on this system" fi if [ "$1" -gt "1" ]; then #only on upgrade... - if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image - /etc/init.d/xcatd restart - fi + 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 + /etc/init.d/xcatd restart + fi fi %endif