To stop
killall -w -v php-fpm
-w is to wait for the processes selected to stop
-v verbose
I observed that few php-fpm processes took time to stop (might be they are wrapping up stuff). Immediately starting php-fpm after passing the killall command without -w might cause error (port in use or unix socket in use).
Another important point. In case if you are running php-fpm in the unix socket mode then make sure to bounce your server in case you are bouncing php-fpm. I follow this
stop server && stop php-fpm && start php-fpm && start server
killall -w -v php-fpm
-w is to wait for the processes selected to stop
-v verbose
I observed that few php-fpm processes took time to stop (might be they are wrapping up stuff). Immediately starting php-fpm after passing the killall command without -w might cause error (port in use or unix socket in use).
Another important point. In case if you are running php-fpm in the unix socket mode then make sure to bounce your server in case you are bouncing php-fpm. I follow this
stop server && stop php-fpm && start php-fpm && start server
No comments:
Post a Comment