[icinga-checkins] icinga.org: icingaweb2-module-director/master: JobsCommand: switch default , do not run forever

git at icinga.org git at icinga.org
Fri Jun 17 16:18:42 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: c5811fe055ca8b2b110b9e57a955ef73e5a45a4d
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=c5811fe055ca8b2b110b9e57a955ef73e5a45a4d

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Jun 17 16:18:02 2016 +0200

JobsCommand: switch default, do not run forever

This reflects former behaviour, as this has already been documented
for cronjob usage

---

 application/clicommands/JobsCommand.php |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/application/clicommands/JobsCommand.php b/application/clicommands/JobsCommand.php
index bd22571..24b7929 100644
--- a/application/clicommands/JobsCommand.php
+++ b/application/clicommands/JobsCommand.php
@@ -23,10 +23,10 @@ class JobsCommand extends Command
             return;
         }
 
-        if ($this->params->shift('once')) {
-            $this->runAllPendingJobs();
-        } else {
+        if ($this->params->shift('forever')) {
             $this->runforever();
+        } else {
+            $this->runAllPendingJobs();
         }
     }
 



More information about the icinga-checkins mailing list