Skip to content

Commit

Permalink
move checkCrondConfigurationFile() from cron_init to cron_shutdown so…
Browse files Browse the repository at this point in the history
… a forced regeneration of the cron.d-file is being handled in the same cronrun

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
  • Loading branch information
d00p committed Oct 5, 2015
1 parent d226af5 commit 2b8a9a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/cron_init.php
Expand Up @@ -219,6 +219,3 @@

// Create a new idna converter
$idna_convert = new idna_convert_wrapper();

// check for cron.d-generation task and create it if necessary
checkCrondConfigurationFile();
3 changes: 3 additions & 0 deletions lib/cron_shutdown.php
Expand Up @@ -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");
Expand Down

0 comments on commit 2b8a9a7

Please sign in to comment.