I’m running php-fpm and I’d like to shutdown and respawn php children without restarting php itself.
I’m running php-fpm and I’d like to shutdown and respawn php children without restarting
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, there is by using pcntl functions, pcntl_fork() in particular would be your friend for this..
You can find many code examples on this page.
Trivial example:
This is as simple as it gets, in real life you have a bit more to check for than this, do look at pcntl section on php.net, and a few of the code examples on the page I posted you. Hope that gets you on the right track, happy coding.