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" |
---|
[57cf15b] | 5 | DEFAULTFILE=/etc/default/opengnsys |
---|
[24f5516] | 6 | |
---|
[57cf15b] | 7 | # Comprobar servicios que deben estar activos. |
---|
| 8 | [ -f $DEFAULTFILE ] && source $DEFAULTFILE |
---|
[24f5516] | 9 | |
---|
[57cf15b] | 10 | # Si un servicio debe estar activo y no se está ejecutando, reiniciar OpenGnSys. |
---|
[55477d2] | 11 | if [ "$RUN_OGADMSERVER" == "yes" -a $(pgrep ogAdmServer | wc -w) == 0 ]; then |
---|
[24f5516] | 12 | date +"%d/%m/%Y %T ERROR: El servicio ogAdmServer estaba caido, se reinicia" >> $LOGDIR/ogAdmServer.log |
---|
| 13 | /etc/init.d/opengnsys restart |
---|
| 14 | fi |
---|
[55477d2] | 15 | if [ "$RUN_OGADMREPO" == "yes" -a $(pgrep ogAdmRepo | wc -w) == 0 ]; then |
---|
[57cf15b] | 16 | date +"%d/%m/%Y %T ERROR: El servicio ogAdmRepo estaba caido, se reinicia" >> $LOGDIR/ogAdmRepo.log |
---|
[24f5516] | 17 | /etc/init.d/opengnsys restart |
---|
| 18 | fi |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.