PHP script via crond killed after 10 minutes
Hello,
Im running Docker, alpine 3.7 with php7-7.1.12-r0.
Script is cronned by using:
RUN echo "*/1 * * * * cd /source ; strace /usr/bin/php7 -c /etc/php/php.ini -f /source/CommandSlave.php" >> /var/spool/cron/crontabs/root
Im running background scripts with:
crond -f -l 0 -L /dev/stdout
However, after exactly 10 minutes, my current running PHP script gets
killed and the next one executed.
In my script, im doing a:
Log::getInstance()->debug('Starting ');
phpinfo();
sleep(11 * 60);
Log::getInstance()->debug('Slept for 11 minutes!');
And ’Slept for 11 minutes` never gets called.
The PHP script is called via CLI, so max_execution_time does not
apply.
Any ideas what limit is there aswell?
(from redmine: issue id 8471, created on 2018-02-03)