I have some WEBRick server that I would like to run as WEBRick::Daemon (that's where a startup process forks a daemon and exits). The problem is, there is some initialization code that must be executed _after_ the fork (it opens a file for writing). Is there any good way to make it happen (short of overriding WEBRick::Daemon#start method)?
I have some WEBRick server that I would like to run as WEBRick::Daemon
(that's where a startup process forks a daemon and exits). The problem
is, there is some initialization code that must be executed _after_ the
fork (it opens a file for writing). Is there any good way to make it
happen (short of overriding WEBRick::Daemon#start method)?