From 9a6c3341786d34c48bc6e4c30073442bae001b04 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Wed, 31 Jul 2013 11:43:35 +0000 Subject: [PATCH] Make the cron script silent if there is nothing to do --- src/do_actions.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/do_actions.php b/src/do_actions.php index 786009a5..6987bbfd 100644 --- a/src/do_actions.php +++ b/src/do_actions.php @@ -76,7 +76,6 @@ if (file_exists($LOCK_FILE) !== false){ unlink($LOCK_FILE); // Lock with the current script's PID - d("Lock the script..."); if (file_put_contents($LOCK_FILE,$MY_PID) === false){ $error_raise.="Cannot open/write $LOCK_FILE\n"; mail_it(); @@ -184,7 +183,6 @@ if($error_raise !== '') mail_it(); // Unlock the script -d("Unlock the script..."); unlink($LOCK_FILE); // Exit this script