Displaying 1 result from an estimated 1 matches for "daemon_class".
2005 Dec 01
1
service_cli.rb
...p...
end
service_cli(''Riki'', RikiDaemon)
----
So now the "control" and "daemon" functions are both handled from the same
generic script (I added an odd but effective command line parameter of
--service which means its getting started by win32 and should call
daemon_class.new.mainloop).
And now "service_cli.rb" is just generic code I could potentially reuse
across other services.
So, I dunno, perhaps this is too simple or utility-ish, but it has the
potential to remove ~50 lines of boilerplate control/command line code, so I
thought maybe I''d se...