diff options
author | ramon <ramongomez@us.es> | 2014-04-08 12:15:44 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2014-04-08 12:15:44 +0000 |
commit | cafc669dae901d8aceaa6f2a368e1aa22d1700d7 (patch) | |
tree | ad650ece98a9bb0bf9b047290d62a4a469e37ecb | |
parent | 1d599bbf1eef17ddd0436687a9181d0a6d65dd7e (diff) |
#616: Añadir variable {{{RUN_CRONJOB}}} a fichero {{{/etc/default/opengnsys}}} para elegir si no se desea ejecutar en el Cron el fichero de comprobación de servicios ejecutados.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4228 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r-- | admin/Sources/Services/opengnsys.default | 2 | ||||
-rwxr-xr-x | repoman/bin/opengnsys.cron | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/admin/Sources/Services/opengnsys.default b/admin/Sources/Services/opengnsys.default index 24d24265..f998ccfb 100644 --- a/admin/Sources/Services/opengnsys.default +++ b/admin/Sources/Services/opengnsys.default @@ -2,8 +2,10 @@ # RUN_OGADMREPO run OpenGnSys Repository Manager service. # RUN_BTTRACKER run Bittorrent Tracker # RUN_BTSEEDER starts seeding of selected torrent files +# RUN_CRON run Cron script to check started processes RUN_OGADMSERVER="yes" RUN_OGADMREPO="yes" RUN_OGADMAGENT="yes" RUN_BTTRACKER="yes" RUN_BTSEEDER="yes" +RUN_CRONJOB="yes" diff --git a/repoman/bin/opengnsys.cron b/repoman/bin/opengnsys.cron index 4584aef7..be5a0508 100755 --- a/repoman/bin/opengnsys.cron +++ b/repoman/bin/opengnsys.cron @@ -13,6 +13,9 @@ typeset -i OGCPU # % uso CPU # Comprobar servicios que deben estar activos. [ -f $DEFAULTFILE ] && source $DEFAULTFILE +# Salir si no se debe ejecutar la revisión en el cron. +[ "$RUN_CRONJOB" == "no" ] && exit + # Comprobar si está activo el servidor OpenGnSys. if [ "$RUN_OGADMSERVER" == "yes" ]; then # Parar procesos ogAdmServer si consume más de 90% de CPU. |