That would probably work although I'm not sure how you would make sure it was still running - I've used upstart for this kind of thing but I am much more familiar with supervisord so that would be my recommended approach. Why not just try it? Add a route which just calls exit() in PHP and see if the webserver comes back up again .... don't forget to let us know if that works and which option you go with!