Insane crond behavior. keeps making defunct bash processes

donnacha

New Member
I have a crontab that looks like:\[code\]SHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=rootHOME=/0-59 * * * * /var/www/html/private/fivemin/zdaemon.php >> /dev/null &\[/code\]Simple as possible, right?zdaemon.php which I am just testing with is:\[code\]#!/usr/bin/php<?while(true){ sleep(1);}?>\[/code\]Whenever it runs it hangs like:\[code\]root 15532 0.0 0.1 57228 1076 ? Ss 19:09 0:00 crondroot 16681 0.0 0.1 72196 1428 ? S 21:46 0:00 crondroot 16682 0.0 0.0 0 0 ? Zs 21:46 0:00 [bash] <defunct>root 16683 0.0 0.5 54800 5740 ? S 21:46 0:00 /usr/bin/php /var/www/html/private/fivemin/zdaemon.phproot 16687 0.0 0.1 72196 1428 ? S 21:47 0:00 crondroot 16688 0.0 0.0 0 0 ? Zs 21:47 0:00 [bash] <defunct>root 16689 0.0 0.5 54800 5740 ? S 21:47 0:00 /usr/bin/php /var/www/html/private/fivemin/zdaemon.php\[/code\]I have been banging my brain against a wall on this all day. Has anyone seen this before? Any ideas at all?This is a reference to: http://stackoverflow.com/questions/3589786/init-d-script-hanging
 
Back
Top