Parent

Class/Module Index [+]

Quicksearch

MCollective::WindowsDaemon

Public Class Methods

daemonize_runner(pid=nil) click to toggle source
# File lib/mcollective/windows_daemon.rb, line 5
def self.daemonize_runner(pid=nil)
  raise "Writing pid files are not supported on the Windows Platform" if pid
  raise "The Windows Daemonizer should only be used on the Windows Platform" unless Util.windows?

  WindowsDaemon.mainloop
end

Public Instance Methods

service_main() click to toggle source
# File lib/mcollective/windows_daemon.rb, line 12
def service_main
  Log.debug("Starting Windows Service Daemon")

  while running?
    Runner.new(nil).run
  end
end
service_stop() click to toggle source
# File lib/mcollective/windows_daemon.rb, line 20
def service_stop
  Log.info("Windows service stopping")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.