I have an init.d script for nginx that normally works fine. However, after a reboot it doesn't work properly and the worker process would die leaving just the master process.
nginx has some mongodb stuff (nginx-gridfs) compiled in and needs to start after mongodb which is being started by upstart.
That's all I've been able to figure out after some troubleshooting. I believe I have to change over nginx to upstart and make it dependent on mongo. How can I do that?