mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	Fix error handling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -97,16 +97,18 @@ sub setup_CONS | ||||
|  | ||||
|         # make the consever 8 configuration file | ||||
|         $cmd = "makeconservercf"; | ||||
|         xCAT::Utils->runcmd($cmd, -1); | ||||
|         xCAT::Utils->runcmd($cmd, 0); | ||||
|         if ($::RUNCMD_RC != 0) | ||||
|         {    # error | ||||
|             xCAT::MsgUtils->message("S", "Error running $cmd"); | ||||
|             return 1; | ||||
|         } | ||||
|         my $cmd = "chkconfig conserver on"; | ||||
|         xCAT::Utils->runcmd($cmd, 0); | ||||
|         if ($::RUNCMD_RC != 0) | ||||
|         {    # error | ||||
|             xCAT::MsgUtils->message("S", "Error chkconfig conserver on"); | ||||
|             return 1; | ||||
|         } | ||||
|  | ||||
|         # start conserver | ||||
|   | ||||
		Reference in New Issue
	
	Block a user