I created a cronjob which call a php-script every 5mins.
This PHP script needs to start several other PHP CLI scripts and keep them running in background even when the cron-script terminates.
I'm currently creating these sub-processes by the following line of code:
if (!$pid = shell_exec("nohup /var/[..]/cake.php test doSomething > /dev/null 2>&1 & echo $!")) return false;
cake.php test doSomething
That makes sense, you need to tell the children PHP scripts to NOT terminate when it's parent stops.
Add the above line to the children PHP scripts. Should do it