开发者

Ruby daemon decision

开发者 https://www.devze.com 2023-03-27 12:25 出处:网络
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.

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

精彩评论

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

关注公众号