Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am configuring some services to run on Ubuntu server.

I was going through the link below where they use runit to run the services and monit to monitor the services -

http://rubyworks.rubyforge.org/manual/monit.html http://rubyworks.rubyforge.org/manual/runit.html

1) The services are all started through monit. 2) Monit inturn starts them using runit.

What is the advantage of using the above setup, where the services are run using runit via Monit. Why use runit in the middle, instead of directly starting them with monit?

share|improve this question

2 Answers 2

runit is better suited for running processes, as it does not depend upon the pid files and, will also restart if the child process crashes.

Monit in turn monitors the performance of these process, and restarts them using runit as needed.

share|improve this answer

Monit polls the processes, whereas runit runs them as child processes. My guess is that adding runit to the monit setup has the ability to increase the uptime percentage of your services.

share|improve this answer
    
Server Fault is not a place to discuss the merits of one technical approach vs another. This post is more a ramble then an actual, helpful answer. Please read the help center to learn how this site works. –  Sven Oct 30 '14 at 7:07
    
Thanks for correcting me, and your continued effort in moderating an amazing internet resource. I hope my new answer demonstrates that I am 'getting the hang of things'. –  parity3 Oct 31 '14 at 15:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.