Make a Ruby program a daemon?

后端 未结 5 785
旧巷少年郎
旧巷少年郎 2020-12-01 10:53

I want to write a Ruby program that will always be running in the background (a daemon) on my Mac.

Can someone point me in the right direction on how this would be d

5条回答
  •  温柔的废话
    2020-12-01 11:32

    Need to see the daemons-rails gem for Rails 3 (based on rails_generator):

    https://github.com/mirasrael/daemons-rails

    Possible to generate daemon stub like this:

    rails generate daemon 
    

    Features:

    • individual control script per daemon
    • rake:daemon command per daemon
    • capistrano friendly
    • app-wide control script
    • monitoring API
    • possible multiple daemon sets

提交回复
热议问题