User Tools

Site Tools


informatica:hp_z240mt_offstation_comprovacio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:hp_z240mt_offstation_comprovacio [2017/08/08 13:58]
miquel [Execució de ParaVision com a nmrsu]
informatica:hp_z240mt_offstation_comprovacio [2017/08/09 10:27] (current)
miquel [Patch per corbaNameService.default]
Line 957: Line 957:
 Edito els init-scripts per afegir els LSB comment que manquen i evitar que donin cap missatge d'avís. Edito els init-scripts per afegir els LSB comment que manquen i evitar que donin cap missatge d'avís.
  
-==== bruker_lmgr LSB compliant init-script ====+==== Patch per bruker_lmgr ====
  
-Patch per actualitzar l'init-script //bruker_lmgr//:+Aquest és el patch generat amb la comanda ''diff -Naur <original_file> <modified_file>'' per actualitzar l'init-script //bruker_lmgr//:
  
 <file> <file>
-*** bruker_lmgr 2017-08-08 12:58:46.341286448 +0200 +--- /home/sermnadmin/Documents/20170807-Original-Bruker-init-scripts/bruker_lmgr 2012-03-30 13:10:09.000000000 +0200 
---- "/home/sermnadmin/Documents/20170807 - Original Bruker init scripts/bruker_lmgr" 2012-03-30 13:10:09.000000000 +0200 ++++ bruker_lmgr 2017-08-08 12:58:46.341286448 +0200 
-*************** +@@ -21,6 +21,17 @@ 
-*** 21,37 **** + # description: BRUKER FLEXlm license server. 
-  # description: BRUKER FLEXlm license server. + # 
-  +  
-   ++### BEGIN INIT INFO 
-### BEGIN INIT INFO ++# Provides:           bruker_lmgr 
-# Provides:           bruker_lmgr ++# Required-Start: 
-# Required-Start: ++# Required-Stop: 
-# Required-Stop: ++# Default-Start:      2 3 4 5 
-# Default-Start:      2 3 4 5 ++# Default-Stop:       0 1 6 
-# Default-Stop:       0 1 6 ++# Short-Description:  Start/Stop the Flexible License Manager ( Flexlm ) 
-# Short-Description:  Start/Stop the Flexible License Manager ( Flexlm ) ++# Description:        Start/Stop the Flexible License Manager ( Flexlm ) 
-# Description:        Start/Stop the Flexible License Manager ( Flexlm ) ++### END INIT INFO 
-### END INIT INFO+
 +
 + # lmgrd_alive returns 0 if lmgrd is alive otherwise anything else 
 + lmgrd_alive() 
 + { 
 +</file> 
 + 
 +==== Patch per corbaNameService.default ==== 
 + 
 +Aquest és el patch generat amb la comanda ''diff -Naur <original_file> <modified_file>'' per actualitzar l'init-script //corbaNameService.default//: 
 + 
 +<file> 
 +--- /home/sermnadmin/Documents/20170807-Original-Bruker-init-scripts/corbaNameService.default 2017-08-04 12:41:11.000000000 +0200 
 ++++ corbaNameService.default 2017-08-08 12:51:40.609300041 +0200 
 +@@ -4,7 +4,18 @@ 
 + # 
 + # $Id: corbaNameService.default,v 1.9.2.7 2010/01/18 17:52:02 mgoe Exp $ 
 + #
  
- ++ 
-  lmgrd_alive returns 0 if lmgrd is alive otherwise anything else ++### BEGIN INIT INFO 
-  lmgrd_alive() ++# Provides:           corbaNameService 
-  { ++# Required-Start: 
---- 21,26 ----++# Required-Stop: 
 ++# Default-Start:      2 3 4 5 
 ++# Default-Stop:       0 1 6 
 ++# Short-Description:  Start/stop CORBA name service 
 ++# Description:        Start/stop CORBA name service 
 ++### END INIT INFO 
 +
 +
 + XWINNMRHOME=/opt/PV5.1 
 + NMR_SU=nmrsu 
 + INITIAL_PORT=12345
 </file> </file>
  
-==== corbaNameService.default LSB compliant init-script ====+===== Patch per ~paravision/prog/pvmacros/PvStartup =====
  
-Patch per actualitzar l'init-script //corbaNameService.default//:+Quan executo ParaVision surt un missatge d'error que fa referència al fitxer ///opt/PV5.1/prog/pvmacros/PvStartup//,
  
 <file> <file>
-*** corbaNameService.default 2017-08-08 12:51:40.609300041 +0200 +sermnmri@sermn115:/opt/PV5.1$ ./pv 
---- "/home/sermnadmin/Documents/20170807 - Original Bruker init scripts/corbaNameService.default" 2017-08-04 12:41:11.000000000 +0200 +Available disk memory for ParaVision is 40Gbytes. The partition load is 59% 
-*************** +... 
-*** 4,21 **** +/opt/PV5.1/prog/pvmacros/PvStartup115[: 1002: unexpected operator
-  # +
-  # $Id: corbaNameService.default,v 1.9.2.7 2010/01/18 17:52:02 mgoe Exp $ +
-  # +
-!  +
-! ### BEGIN INIT INFO +
-! # Provides:           corbaNameService +
-! # Required-Start: +
-! # Required-Stop: +
-! # Default-Start:      2 3 4 5 +
-! # Default-Stop:       0 1 6 +
-! # Short-Description:  Start/stop CORBA name service +
-! # Description:        Start/stop CORBA name service +
-! ### END INIT INFO +
-!  +
- +
-  XWINNMRHOME=/opt/PV5.1 +
-  NMR_SU=nmrsu +
-  INITIAL_PORT=12345 +
---- 4,10 ---- +
-  # +
-  # $Id: corbaNameService.default,v 1.9.2.7 2010/01/18 17:52:02 mgoe Exp $ +
-  # +
-!   +
-  XWINNMRHOME=/opt/PV5.1 +
-  NMR_SU=nmrsu +
-  INITIAL_PORT=12345+
 </file> </file>
 +
 +Comprovo que es tracta d'un problema de sintaxi (emprar "==" en comptes de "=") i el corregeixo,
 +
 +<file>
 +--- ./PvStartup.BKUP-20170809 2017-08-09 10:19:53.179024468 +0200
 ++++ ./PvStartup 2017-08-09 10:20:21.710655615 +0200
 +@@ -112,7 +112,7 @@
 + 
 + id=`cat $XWINNMRHOME/conf/nmrsuperuser`
 + nmrsu=`id -u $id`
 +-if [ `id -u` == $nmrsu ]
 ++if [ `id -u` = $nmrsu ]
 + then
 +     touch $XWINNMRHOME/.hasStarted
 + fi
 +</file>
 +
 +i el següent cop que executo ParaVision ja no apareix el missatge d'error.
  
informatica/hp_z240mt_offstation_comprovacio.1502193515.txt.gz · Last modified: 2017/08/08 13:58 by miquel