Does Crontab not kill processes after they are gone?

2

I'm using the Crontab to run a PHP script every 10 minutes the problem is that the processes are getting to run on the server, ie every 10 minutes I have one more process to run.

crontab -e 

*/5 * * * * /usr/bin/php /path/to/test/test.php

Does Crontab not kill processes after they run out?

Or do I have to do something in the PHP script for the process to end?

    
asked by anonymous 05.11.2014 / 18:30

1 answer

2

Cron is just a task scheduler, that is crontab, its configuration utlitario, does not kill processes only executes them at the time they were scheduled.

In order for your processes to be finalized your PHP script has to terminate somehow, I do not know the content of it to be able to say what you have to do, but as said Cron does not do this it's just a task scheduler

    
16.12.2014 / 09:24