summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/Sources/Services/opengnsys.default2
-rwxr-xr-xrepoman/bin/opengnsys.cron3
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.