Make a Ruby program a daemon?

后端 未结 5 784
旧巷少年郎
旧巷少年郎 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:16

    Ah, Google to the rescue! Check out

    http://fitzgeraldsteele.wordpress.com/2009/05/04/launchd-example-start-web-server-at-boot-time/

    wherein a helpful blogger provides an example of writing a launchd plist to launch a ruby Web application server.

提交回复
热议问题