| Class | MCollective::WindowsDaemon |
| In: |
lib/mcollective/windows_daemon.rb
|
| Parent: | Win32::Daemon |
# File lib/mcollective/windows_daemon.rb, line 5
5: def self.daemonize_runner(pid=nil)
6: raise "Writing pid files are not supported on the Windows Platform" if pid
7: raise "The Windows Daemonizer should only be used on the Windows Platform" unless Util.windows?
8:
9: WindowsDaemon.mainloop
10: end
# File lib/mcollective/windows_daemon.rb, line 12
12: def service_main
13: Log.debug("Starting Windows Service Daemon")
14:
15: runner = Runner.new(nil)
16: runner.run
17: end