Displaying 1 result from an estimated 1 matches for "web_daemon".
2005 May 14
4
Problems with custom service and webrick
...def service_main
while state == RUNNING
File.open(@log, "a+"){ |fh| fh.puts "Service
running" }
sleep 5
end
end
def service_stop
File.open(@log, "a+"){ |fh| fh.puts "Service
stopped" }
exit
end
end
web_daemon = WebrickDaemon.new
web_daemon.mainloop
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com