From 2b8a9a74beeb8a9d43d2e9795062d44d5102cc65 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 5 Oct 2015 20:10:55 +0200 Subject: [PATCH] move checkCrondConfigurationFile() from cron_init to cron_shutdown so a forced regeneration of the cron.d-file is being handled in the same cronrun Signed-off-by: Michael Kaufmann (d00p) --- lib/cron_init.php | 3 --- lib/cron_shutdown.php | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cron_init.php b/lib/cron_init.php index 1571111f..1220e25b 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -219,6 +219,3 @@ $cronscriptDebug = (Settings::Get('system.debug_cron') == '1') ? true : false; // Create a new idna converter $idna_convert = new idna_convert_wrapper(); - -// check for cron.d-generation task and create it if necessary -checkCrondConfigurationFile(); diff --git a/lib/cron_shutdown.php b/lib/cron_shutdown.php index 71a262fa..62f7f2e7 100644 --- a/lib/cron_shutdown.php +++ b/lib/cron_shutdown.php @@ -17,6 +17,9 @@ * */ +// check for cron.d-generation task and create it if necessary +checkCrondConfigurationFile(); + if (Settings::Get('logger.log_cron') == '1') { $cronlog->setCronLog(0); fwrite($debugHandler, 'Logging for cron has been shutdown' . "\n");