开发者

The init script to several Unicorn.rb instance

开发者 https://www.devze.com 2022-12-23 03:03 出处:网络
I use now thin to serve my rack application on my webserver. I have a lot of web application so I have a init script who check all file in my /etc/thin and start all of then with configuration inside.

I use now thin to serve my rack application on my webserver. I have a lot of web application so I have a init script who check all file in my /etc/thin and start all of then with configuration inside.

I want migrate to unicorn so I want same behaviour, but when I check the example in unicorn, I found only init scri开发者_运维知识库pt to start one unicorn instance.

What I can use like init script to do that ?


I was looking for the same thing. You'll need to create an init script for each app. I modified this init.d script which uses a PID file instead of the program name:

http://gist.github.com/308216

0

精彩评论

暂无评论...
验证码 换一张
取 消