mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	two changes: 1. run mount -a anyway to make sure the osimage has been mounted from MN; 2. set the STDIN/STDOUT/STDERR to /dev/null so that mpss start can daemonized cleanly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16942 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -119,6 +119,10 @@ if ($rc) { | ||||
|     runsyscmd ($cmd); | ||||
|     $cmd = "mount -a"; | ||||
|     runsyscmd ($cmd); | ||||
| } else { | ||||
|     # run mount -a anyway | ||||
|     $cmd = "mount -a"; | ||||
|     runsyscmd ($cmd); | ||||
| } | ||||
|  | ||||
| # make sure the remote files are accessable  | ||||
| @@ -273,7 +277,7 @@ foreach my $micid (keys %miccfg) { | ||||
| } | ||||
|  | ||||
| # start the mpss service after the configuration | ||||
| $cmd = "service mpss start >/dev/null 2>&1"; | ||||
| $cmd = "service mpss start >/dev/null 2>&1 </dev/null"; | ||||
| system($cmd); | ||||
|  | ||||
| $i = 5; | ||||
| @@ -297,15 +301,6 @@ print LOG "\nFinish the mic configuratoin: ".`date`."=========================== | ||||
|  | ||||
| close (LOG); | ||||
|  | ||||
| # since the start of mpss service created a new process and for some reason the process caused the hang of | ||||
| # sshd root@notty on the host (that means the xdsh cannot get connection closed from host), a work around  | ||||
| # is to kill the sshd connection by force | ||||
| $cmd = "ps -ef | grep sshd | grep notty |awk -F\' \' \'{print \$2}\'"; | ||||
| ($rc, $output) = runsyscmd ($cmd); | ||||
| foreach (@$output) { | ||||
|     kill 15, $_; | ||||
| } | ||||
|  | ||||
| exit 0; | ||||
|  | ||||
| # run command | ||||
|   | ||||
		Reference in New Issue
	
	Block a user