I'm on ubuntu (10.10) and I've got php5-fpm installed. Whenever I restart it, I get no errors, just a successful restart message. But it's not really working (I only know this because php pages get an error (502 bad gateway if I recall correctly). If I restart again it works just fine. So every time I need to restart I just do it quickly twice. The problem is I want to be able to restart an entire server and have it working without having to go restart php5-fpm again.
How can I figure out this problem? What logs should I look at? Anyone else had similar issues?