search for: rikidaemon

Displaying 1 result from an estimated 1 matches for "rikidaemon".

2005 Dec 01
1
service_cli.rb
...te, so I pulled it out into a helper function "service_cli" (for lack of a better name). Its simple, but it allows me to do away with a Riki-specific control script. So I can just do: riki.rb: ---- $LOAD_PATH.unshift File.dirname(__FILE__) require ''service_cli'' class RikiDaemon < Win32::Daemon def self.setup(s) s.binary_path_name = "ruby #{__FILE__} --service" end ...service_main/service_stop... end service_cli(''Riki'', RikiDaemon) ---- So now the "control" and "daemon" functions are both handled from the same...