M
M
Mikke2012-03-16 04:29:45
Nginx
Mikke, 2012-03-16 04:29:45

Unicorn Monitoring

Hello, I have a server deployed on which Rails projects are being developed, I chose the Nginx + Unicorn bundle as the server. Run Unicorn under the project I do from the command line. When I need to restart the service, I grab the current processes and kill Unicorn, then start it again. If I restart the server, then for each project I need to start the unicorn again! Tell me what are the tools for organizing a convenient start / stop / restart of Unicorn and how to add a launch of your Unicorn for each project after starting or rebooting all machines?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
avalak, 2012-03-16
@avalak

Use supervisord .

J
jj_killer, 2012-03-16
@jj_killer

There is also Ruby-way . Examples of configs for Unicorn can be searched on githab .

S
shadowalone, 2012-03-16
@shadowalone

Ready-made init scripts have been posted for a long time, for example
gist.github.com/750379
and
gist.github.com/504875

M
marazmiki, 2012-03-16
@marazmiki

habrauserslightly higher advised supervisord. This is a good solution, although it requires some tweaking.
I prefer the simpler daemontools which works out of the box with no configuration required.

E
Exorcist, 2012-03-16
@Exorcist

I am using runit

M
Mikke, 2012-04-03
@Mikke

thanks everyone for the replies!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question