]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
- Use port argument of runSession
authorribes <ribes>
Tue, 17 Nov 2009 09:58:16 +0000 (09:58 +0000)
committerribes <ribes>
Tue, 17 Nov 2009 09:58:16 +0000 (09:58 +0000)
- Clean shutdown

src/Launcher/Launcher_Job_YACSFile.cxx

index ff99d9cde481af87601dcb4d5ebbd66d9a9d2783..511e5c306fbb7e8801eeaba50441031b4056b0a8 100644 (file)
@@ -135,9 +135,9 @@ Launcher::Job_YACSFile::buildSalomeCouplingScript(Batch::Parametre params)
                       << "    exit\n"
                       << "  fi\n"
                       << "done\n"
-                      << "port=`cat " << _machine_definition.AppliPath << "/" << launch_date_port_file << "`\n";
-  launch_script_stream << _machine_definition.AppliPath << "/runSession driver " << yacs_file_name << ".xml > logs/yacs_" << launch_date << ".log 2>&1" << std::endl;
-  launch_script_stream << _machine_definition.AppliPath << "/runSession killSalomeWithPort.py $port" << std::endl;
+                      << "appli_port=`cat " << _machine_definition.AppliPath << "/" << launch_date_port_file << "`\n";
+  launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port driver " << yacs_file_name << ".xml > logs/yacs_" << launch_date << ".log 2>&1" << std::endl;
+  launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port shutdownSalome.py" << std::endl;
 
   // Return
   launch_script_stream.flush();