Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (9 sloc) 221 Bytes
require 'rubygems'
require 'win32/service'
include Win32
SERVICE = 'testservice'
begin
Service.stop(SERVICE) if Service.status(SERVICE).controls_accepted.include? "stop"
rescue
end
Service.delete(SERVICE)