search for: webrickdaemon

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

Did you mean: webrick_daemon
2005 May 14
4
Problems with custom service and webrick
...puts "One moment, status is still " + Service.status(service_name).current_state sleep 1 end Service.delete(service_name) puts "#{display_name} service deleted" end # END webrickctl.rb # webrick_daemon.rb require "win32/service" include Win32 class WebrickDaemon < Daemon def initialize @log = "C:\\log.txt" end def service_start File.open(@log,"a+"){ |fh| fh.puts "Service started" } end def service_main while state == RUNNING File.open(@log, "a+"){ |fh| fh.puts &quo...