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");