Description The Daemon class is a wrapper class that allows you to run your code as a Windows service. Synopsis require 'win32/daemon' include Win32 class Daemon def service_main while running? sleep 3 File.open("c:\\test.log", "a"){ |f| f.puts "service is running" } end end def service_stop exit! end end Daemon.mainloop Class Methods Daemon.mainloop This is the method that actuall