Welcome! Log In Create A New Profile

Advanced

Re: nginx dead but pid file exists

Jonathan Matthews
October 20, 2012 08:02AM
On 20 October 2012 12:36, nnttoo <nginx-forum@nginx.us> wrote:
> 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"?

If you're asking for example of how cron jobs work, I don't think
you're experienced enough to write scripts to monitor a daemon
robustly.

Please look into "monit" instead, if indeed your VPS environment seems
to kill off processes like nginx randomly. Personally, I've never seen
this happen, but I'm sure there are situations in which it can.
Solutions like monit are a band-aid, and not a universal panacea.

Jonathan
--
Jonathan Matthews // Oxford, London, UK

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx dead but pid file exists

nnttoo October 20, 2012 03:55AM

Re: nginx dead but pid file exists

hexa October 20, 2012 06:08AM

Re: nginx dead but pid file exists

nnttoo October 20, 2012 07:36AM

Re: nginx dead but pid file exists

Jonathan Matthews October 20, 2012 08:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 193
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready