Can I create a sh file that checks the status of nginx and run it with cron job? if nginx status becomes "dead", then the sh file is going to restart nginx. if it can, how to sample his sh file? and how examples of "cron job"?by nnttoo - Nginx Mailing List - English
I had this problem a few times, "nginx dead but pid file exists" My site suddenly can not access, after I typed "service nginx status" and the answer is "nginx dead but pid file exists", what happened to my vps? if possible, how to make the nginx reload / restart automatically if it happens again.by nnttoo - Nginx Mailing List - English