RAA - win32-service/0.5.0

win32-service / 0.5.0

Short description: Interface to Win32 services
Category: Library/Win32
Status: stable
Created: 2003-10-11 00:13:18 GMT
Last update: 2005-11-27 01:29:54 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://rubyforge.org/projects/win32utils/
Download: http://rubyforge.org/frs/download.php/7324/win32-service-0.5.0.zip
License: Ruby's
Dependency:
Required by: mongrel/0.3.12 For win32-service stuff. Mongrel project provides a gem.
Description:

Description

   This is an interface for Win32 services on the Windows NT
   family of operating systems.

Synopsis

   require "win32/service"
   include Win32

   s = Service.new("some_machine")

   # Create a new service
   s.create_service{ |s|
      s.service_name     = "foo"
      s.binary_path_name = "C:\\some_dir\\foo.exe"
      s.display_name     = "My Foo Service"
   }

   # Configure a service that already exists
   s.configure_service{ |s|
      s.display_name = "My Bar Service"
   }

   s.close

   Service.start("foo")
   Service.pause("foo")
   Service.resume("foo")
   Service.stop("foo")

   Service.delete("foo")

   Service.getdisplayname("Schedule") # "Task Scheduler"
   Service.getservicename("ClipBook") # "ClipSrv"

   s = Service.status("ClipSrv")

   # Enumerate over all services, inspecting each struct
   Service.services{ |s|
      p s
      puts
   }
Versions: [0.6.1 (2008-01-02)] [0.6.0 (2007-11-25)] [0.5.2 (2006-11-25)] [0.5.1 (2006-06-20)] [0.5.0 (2005-11-27)] [0.4.6 (2005-05-24)] [0.4.5 (2005-03-01)] [0.4.4 (2004-08-28)] [0.4.3 (2004-08-14)] [0.4.2 (2004-07-10)] [0.4.1 (2004-04-05)]

Edit this project (for project owner)

back to RAA top