![]() Add the code for start and stop services in /home/USER_NAME/APP_NAME/shared/delayed_job.monitrc file.Create /home/USER_NAME/APP_NAME/shared/delayed_job.monitrc.Monit does not have Rails and RVM environment variables so that cannot start delayed_job directly like as other services defined above. ![]() Stop program = "/etc/init.d/unicorn stop" Start program = "/etc/init.d/unicorn start" home/USER_NAME/APP_NAME/shared/pids/unicorn.pid Unicorn check process unicorn with pidfile Start program = "/etc/init.d/redis start" Stop program = "/etc/init.d/mongodb stop" Start program = "/etc/init.d/mongodb start" Start program = "/etc/init.d/httpd start" Start program = "/etc/init.d/mysql start" MySQL check process mysqld with pidfile /var/run/mysqld/mysqld.pid Start program = "/etc/init.d/nginx start" Here are configurations of some of the most common applications used with Rails: Nginx check process nginx with pidfile /var/run/nginx.pid Once the Monit is installed, you can add applications and tools you want to monitor in /etc/monit/monitrc configuration file like as below. Checkout the steps mentioned in previous post for more details. This post explains how to configure Monit for commonly used tools and services with a rails application. Monit is one of the tools we use in production to ensure that all essential services and applications are up and running. We value our customers a lot and so we use all the tools and services to make our client’s application highly available in production.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |