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/branches/2.8@16943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2013-07-11 06:45:27 +00:00
parent c28fe1ef3b
commit b4a5ddf4dc

View File

@ -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