]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Use new SALOME launch commands in Launcher service
authorRenaud Barate <renaud.barate@edf.fr>
Fri, 9 Jan 2015 09:37:12 +0000 (10:37 +0100)
committerRenaud Barate <renaud.barate@edf.fr>
Fri, 13 Feb 2015 13:59:38 +0000 (14:59 +0100)
src/Launcher/Launcher_Job_PythonSALOME.cxx
src/Launcher/Launcher_Job_SALOME.cxx
src/Launcher/Launcher_Job_YACSFile.cxx

index b192defa8af89131dd149532b2f202bd0995d64e..19a3bb1c5dfadf7e2b4e5461512922772d4e67a2 100644 (file)
@@ -35,5 +35,5 @@ Launcher::Job_PythonSALOME::setJobFile(const std::string & job_file)
 void
 Launcher::Job_PythonSALOME::addJobTypeSpecificScript(std::ofstream & launch_script_stream)
 {
-  launch_script_stream << _resource_definition.AppliPath << "/runSession -p $appli_port python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
+  launch_script_stream << _resource_definition.AppliPath << "/salome shell -p $appli_port python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
 }
index 68613341b789ded0d6001c44d4ef644da6046afe..0a50db1861e1ea2d71d3b08c7a0e52d8df1f1b30 100644 (file)
@@ -116,7 +116,7 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
   launch_script_stream << "NS_PORT_FILE_NAME=`basename $NS_PORT_FILE_PATH` &&\n";
 
   // Launch SALOME with an appli
-  launch_script_stream << _resource_definition.AppliPath << "/runAppli --terminal --ns-port-log=$NS_PORT_FILE_NAME --server-launch-mode=fork ";
+  launch_script_stream << _resource_definition.AppliPath << "/salome start --terminal --ns-port-log=$NS_PORT_FILE_NAME --server-launch-mode=fork ";
   launch_script_stream << "> logs/salome_" << _launch_date << ".log 2>&1 &&" << std::endl;
   launch_script_stream << "current=0 &&\n"
                        << "stop=20 &&\n"
@@ -136,8 +136,8 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
   addJobTypeSpecificScript(launch_script_stream);
 
   // End
-  launch_script_stream << _resource_definition.AppliPath << "/runSession -p $appli_port shutdownSalome.py" << std::endl;
-  launch_script_stream << "sleep 10" << std::endl;
+  launch_script_stream << _resource_definition.AppliPath << "/salome shell -p $appli_port shutdownSalome.py" << std::endl;
+  //launch_script_stream << "sleep 10" << std::endl;
 
   // Return
   launch_script_stream.flush();
index 6e284610e1d2dd315fd51e579527f5b4aa2b3847..896ac09e0dab0b5717edc697fde0db75be39eb66 100644 (file)
@@ -40,9 +40,9 @@ Launcher::Job_YACSFile::setJobFile(const std::string & job_file)
 void
 Launcher::Job_YACSFile::addJobTypeSpecificScript(std::ofstream & launch_script_stream)
 {
-  launch_script_stream << _resource_definition.AppliPath << "/runSession -p $appli_port driver -k $appli_port " << _job_file_name_complete;
+  launch_script_stream << _resource_definition.AppliPath << "/salome shell -p $appli_port driver args:-k,$appli_port," << _job_file_name_complete;
   if (_dumpState > 0)
-    launch_script_stream << " --dump=" << _dumpState;
+    launch_script_stream << ",--dump=" << _dumpState;
   launch_script_stream << " > logs/yacs_" << _launch_date << ".log 2>&1" << std::endl;
 }