How can I kill a php-fpm process without the signal being logged in the fpm log

247 views Asked by At

I have a function that through exec() kills a php-fpm process.

exec("kill -9 ".$pid); 

Everytime I call it, a line gets added to the php-fpm log

WARNING: [pool xxxxxx] child 18120 exited on signal 9 (SIGKILL) after 308.956597 seconds from start

Is it possible to kill the process silently, without the signal being logged in the fpm log? Thanks!

1

There are 1 answers

1
Ritesh Hirapara On

Please try with below solutions I think it will be work for you.:

kill -15 <PID>

Above was worked for me.