I have a question regarding Magento.
Apparently, to perform scheduled tasks within Magento, it needs to run a script called
cron.php. Originally the script was triggered by an on-server crontab using the line
wget -O /dev/null http://www.example.com/cron12345.php.
Unfortunately, due to some problems, we need to limit the life of the PHP FPM child processes to 300 seconds... and that murdered the PHP process running
I tried running
cron.php from CLI using the command
php -c /etc/php5/fpm/php.ini cron.php and it seemed to work... but there were no output and the script just keeps running...
So my questions:
cron.phpa one-shot script, or does it run until completion and needs to be invoked again?
- If it needs to be regularly invoked (via cron), can I just add a crontab like the following:
*/15 * * * * cd /var/www/website && php -c /etc/php5/fpm/php.ini cron.php
Thank you for your kind assistance.