开发者

Ruby daemon decision

I'm aware of some great gems (Daemons, Resque, Starling/Workling, background_job.rb...) to daemonize Ruby tasks, but I'm not sure which to choose in my context.

My daemon is quite simple, it polls a database, looking for jobs. It does not load any framework like Rails. Each job is relatively fast. I need to be sure the daemon is always alive, and it needs to be automatically relaunched if it dies. 开发者_StackOverflowTarget platforms are OSX and Linux.

Which daemon gem would you use ?


If you need to keep it alive, you might want to try some process management tools like bluepill or god. I used bluepill in the production server and it works fine on both OSX and Linux. Both can daemonize your ruby script as well. :D

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜