Class MCollective::WindowsDaemon
In: lib/mcollective/windows_daemon.rb
Parent: Win32::Daemon

Methods

Public Class methods

[Source]

    # 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

Public Instance methods

[Source]

    # File lib/mcollective/windows_daemon.rb, line 12
12:     def service_main
13:       Log.debug("Starting Windows Service Daemon")
14: 
15:       while running?
16:         Runner.new(nil).run
17:       end
18:     end

[Source]

    # File lib/mcollective/windows_daemon.rb, line 20
20:     def service_stop
21:       Log.info("Windows service stopping")
22:     end

[Validate]