By daemon, do you simply mean that you want to run it in the background? If
so, setsid() is the method you want (it’s a Kernel method).
How do I make a script run as a deamon in ruby? I’m trying to create a
variation on fetchmail and hence I want it to run in daemon mode, when
invoked by root or so ‘optioned’