close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | TIME1=$SECONDS |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | #Load engine configurator from engine.cfg file. |
|---|
| 6 | #Carga el configurador del engine desde el fichero engine.cfg |
|---|
| 7 | [ -z $OGENGINECONFIGURATE ] && source /opt/opengnsys/etc/engine.cfg |
|---|
| 8 | |
|---|
| 9 | # Clear temporary file used as log track by httpdlog |
|---|
| 10 | # Limpia los ficheros temporales usados como log de seguimiento para httpdlog |
|---|
| 11 | echo -n "" > $OGLOGSESSION; echo -n "" > $OGLOGCOMMAND |
|---|
| 12 | |
|---|
| 13 | # Registro de inicio de ejecución |
|---|
| 14 | ogEcho log session "$MSG_INTERFACE_START $0 $*" |
|---|
| 15 | |
|---|
| 16 | echo -e "\n Instrucciones a ejecutar: *****************************" >> $OGLOGFILE |
|---|
| 17 | cat $1 >> $OGLOGFILE |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | echo -e "\n Salida de las instrucciones: *****************************" >> $OGLOGFILE |
|---|
| 21 | chmod +x $1 |
|---|
| 22 | # Si mandamos la salida a OGLOGCOMMAND reescribimos lo que manda el comando. |
|---|
| 23 | #$1 &>> $OGLOGCOMMAND |
|---|
| 24 | $1 |
|---|
| 25 | RETVAL=$? |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | TIME=$[SECONDS-TIME1] |
|---|
| 30 | if [ $RETVAL == 0 ] |
|---|
| 31 | then |
|---|
| 32 | ogEcho log session "[100] Duracion de la operacion $[TIME/60]m $[TIME%60]s" |
|---|
| 33 | else |
|---|
| 34 | ogRaiseError log session $RETVAL |
|---|
| 35 | ogEcho log session error "Operacion no realizada" |
|---|
| 36 | fi |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | # Registro de fin de ejecución |
|---|
| 40 | ogEcho log session "$MSG_INTERFACE_END $RETVAL" |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | exit $RETVAL |
|---|
| 44 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.