source: repoman/bin/opengnsys.cron @ 04d8432

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
Last change on this file since 04d8432 was 24f5516, checked in by irina <irinagomez@…>, 14 years ago

Plantilla para logrotate y script para el cron que levanta los servicios si estan caidos

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2123 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 537 bytes
Line 
1# Comprobamos si los servicios de opengnsys están levantado y si no es así los iniciamos.
2# Variables.
3OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"}
4LOGDIR="$OPENGNSYS/log"
5
6
7if ! $(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
10fi
11if ! $(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
14fi
15
Note: See TracBrowser for help on using the repository browser.