mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	changed spec files to use the new command xcatstart to restart the xcatd on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user