Cron jobs terminate prematurely on amazon ec2 crontab

孤街浪徒 提交于 2019-12-24 07:17:03

问题


I am using amazon ec2 server and I have set up some cron jobs on crontab.

Sample for setting up cron job

58 11 12 * * php /var/www/html/folder/index.php controller/function/parameter

When I try

crontab -l

on putty they all appear and everything seems to be working fine.

But cron jobs with lengthy execution time tend to stop prematurely without generating any error in log file.

I am also setting the large execution time at the top of my php script

ini_set('max_execution_time', 600000);

I couldn't figure out whats happening. Any kind of help will be appreciated.

来源:https://stackoverflow.com/questions/37776164/cron-jobs-terminate-prematurely-on-amazon-ec2-crontab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!