]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0021688: [CEA 572] Issue when using runSalome -k -t
authorvsr <vsr@opencascade.com>
Tue, 13 Nov 2012 11:38:05 +0000 (11:38 +0000)
committervsr <vsr@opencascade.com>
Tue, 13 Nov 2012 11:38:05 +0000 (11:38 +0000)
bin/killSalomeWithPort.py
bin/shutdownSalome.py

index be71c654b9c07e046b5de7540d96ddb82072ecb2..e4ba1d3c35fd3644dc5f4f2aba3d3643e7f003ac 100755 (executable)
@@ -162,18 +162,22 @@ def shutdownMyPort(port):
                                       with_port=port,
                                       **kwargs)
     os.environ['OMNIORB_CONFIG'] = omniorb_config
+    os.environ['NSPORT'] = port
 
     # give the chance to the servers to shutdown properly
     try:
         import time
-        import salome_kernel
-        orb, lcc, naming_service, cm = salome_kernel.salome_kernel_init()
+        from omniORB import CORBA
+        from LifeCycleCORBA import LifeCycleCORBA
         # shutdown all
+        orb = CORBA.ORB_init([''], CORBA.ORB_ID)
+        lcc = LifeCycleCORBA(orb)
         lcc.shutdownServers()
         # give some time to shutdown to complete
         time.sleep(1)
         # shutdown omniNames and notifd
-        salome_kernel.LifeCycleCORBA.killOmniNames()
+        lcc.killOmniNames()
+        time.sleep(1)
     except:
         pass
     pass
index b7d319696acc7f3926d1cb1e033554689291eb03..ed81e00e83660501e57db3f2e755fc55fc54470e 100755 (executable)
 #
 
 import time
-import salome_kernel
-orb, lcc, naming_service, cm = salome_kernel.salome_kernel_init()
+from omniORB import CORBA
+from LifeCycleCORBA import *
+
+orb = CORBA.ORB_init([''], CORBA.ORB_ID)
+lcc = LifeCycleCORBA(orb)
 lcc.shutdownServers()
-#give some time to shutdown to complete
 time.sleep(1)
-salome_kernel.LifeCycleCORBA.killOmniNames()
+LifeCycleCORBA.killOmniNames()
+time.sleep(1)