Re: Apache graceful restarts and FastCGI - mod_fcgid: can't lock process ta
to access to edit crontab. Do as root ( su - ).
Then, add this line:
Where "*/5 * * * *" means every 5 minutes, and ">/dev/null 2>&1" send respond information (that command do if don't find any zombie php process) to null; and you don't recive any mail.
Bye
That line really works! It killed all of them.
I'm sorry, but I'm pretty new to this. How would I set up that command as a cron job?
Thanks!
Code:
crontab -e
Then, add this line:
Code:
*/5 * * * * ps auxwwwf | grep '[0-9] /usr/bin/php' | awk '{ print $2 }' | xargs kill -9 >/dev/null 2>&1
Bye