918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Rev | Line | |
---|
[24f5516] | 1 | # Comprobamos si los servicios de opengnsys están levantado y si no es así los iniciamos. |
---|
| 2 | # Variables. |
---|
| 3 | OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"} |
---|
| 4 | LOGDIR="$OPENGNSYS/log" |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | if ! $(pgrep ogAdmServer >> /dev/null); then |
---|
| 8 | date +"%d/%m/%Y %T ERROR: El servicio ogAdmServer estaba caido, se reinicia" >> $LOGDIR/ogAdmServer.log |
---|
| 9 | /etc/init.d/opengnsys restart |
---|
| 10 | fi |
---|
| 11 | if ! $(pgrep ogAdmRepo >> /dev/null); then |
---|
| 12 | date +"%d/%m/%Y %T ERROR: El servicio opAdmRepo estaba caido, se reinicia" >> $LOGDIR/ogAdmRepo.log |
---|
| 13 | /etc/init.d/opengnsys restart |
---|
| 14 | fi |
---|
| 15 | |
---|
Note: See
TracBrowser
for help on using the repository browser.