diff options
author | ramon <ramongomez@us.es> | 2012-03-20 10:00:58 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-03-20 10:00:58 +0000 |
commit | 55477d293862a9965f044b558d1224104dc2dd2b (patch) | |
tree | 52b590e2d75a1dccb2b14e03915db0b02d12fc68 /repoman | |
parent | 643ca8ca716a9f5495b2a0d392d6ecfa063e4af0 (diff) |
Versión 1.0.4, #414: Arrancar servicios en CentOS; mejoras en ficheros de cron.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2902 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'repoman')
-rwxr-xr-x | repoman/bin/opengnsys.cron | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repoman/bin/opengnsys.cron b/repoman/bin/opengnsys.cron index 55022ef1..db517fbd 100755 --- a/repoman/bin/opengnsys.cron +++ b/repoman/bin/opengnsys.cron @@ -8,11 +8,11 @@ DEFAULTFILE=/etc/default/opengnsys [ -f $DEFAULTFILE ] && source $DEFAULTFILE # Si un servicio debe estar activo y no se está ejecutando, reiniciar OpenGnSys. -if [ "$RUN_OGADMSERVER" == "yes" -a $(pgrep -c ogAdmServer) == 0 ]; then +if [ "$RUN_OGADMSERVER" == "yes" -a $(pgrep ogAdmServer | wc -w) == 0 ]; then date +"%d/%m/%Y %T ERROR: El servicio ogAdmServer estaba caido, se reinicia" >> $LOGDIR/ogAdmServer.log /etc/init.d/opengnsys restart fi -if [ "$RUN_OGADMREPO" == "yes" -a $(pgrep -c ogAdmRepo) == 0 ]; then +if [ "$RUN_OGADMREPO" == "yes" -a $(pgrep ogAdmRepo | wc -w) == 0 ]; then date +"%d/%m/%Y %T ERROR: El servicio ogAdmRepo estaba caido, se reinicia" >> $LOGDIR/ogAdmRepo.log /etc/init.d/opengnsys restart fi |