Sha256: 84d09f9a615a2d08525c6bd94c7396299f283dceb30d10bafe3820094e274896
Contents?: true
Size: 619 Bytes
Versions: 7
Compression:
Stored size: 619 Bytes
Contents
require 'win32/daemon' module MCollective class WindowsDaemon < Win32::Daemon 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 def service_main Log.debug("Starting Windows Service Daemon") runner = Runner.new(nil) runner.run end def service_stop Log.info("Windows service stopping") PluginManager["connector_plugin"].disconnect exit! 0 end end end
Version data entries
7 entries across 7 versions & 1 rubygems