So I have a small droplet that I run a few small WordPress sites on with Nginx, HHVM, MySQL, etc.
Once a week or so, seemingly randomly, I visit sites on the server and am greeted with a “502 Bad Gateway” error from Nginx. When I investigate further in SSH, I discover that HHVM is not running.
I simply run the “sudo service hhvm start” command and everything comes up and running again.
So I have a couple questions:
Is there any reason why HHVM would suddenly stop running like I’ve described? I believe I have it included in my boot sequence and I regularly update all my packages.
Is there a way to run an automated check, maybe once every five minutes or so to check if HHVM is running, and if not, starting it?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!