On a Debian server, I have a crontab entry that should call a script every day at 04:21 AM.
That's what it did, until today .. but now the script is called every 15 minutes without any reason !
I have not changed the crontab in months !
Here's the crontab line :
21 4 * * * /usr/bin/wget -O /dev/null http://www.domain.tld/tasks/hebdomadaire.php &> /dev/null
And here's the Apache log ( cat access.log | grep "hebdomadaire" ) :
SERVER_IP - - [28/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [29/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [30/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:04:36:02 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:04:51:04 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:06:07 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:21:11 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:36:16 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:51:22 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:06:30 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:21:38 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:36:47 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:51:57 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:07:07:07 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
How can that be?
The default behaviour of wget (documented in the manual) is to restart after a default timeout of 900s (aka 15 min).
Adding --timeout=0
solves the problem here.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments