R
Rajiv Abraham
Hi,
I am trying to create and register a windows service with the following
code.
require "rubygems"
require "win32/service"
include Win32
svc = Service.newservice_name => "rajiv_service_name")
Error:
C:/Ruby/lib/ruby/gems/1.8/gems/win32-service-0.7.1-x86-mswin32-60/lib/win32/service.rb:368:in
`initialize': Access is denied. (Win32::Service::Error)
from
C:/Users/Rajiv/Documents/NetBeansProjects/MusicClockService/lib/register_bar_1.rb:9:in
`new'
from
C:/Users/Rajiv/Documents/NetBeansProjects/MusicClockService/lib/register_bar_1.rb:9
I tried changing to:
svc = Service.newservice_name =>SERVICE_NAME,
:service_start_name => "HOME\\Rajiv",
assword => "my_pwd" )
but it still did not work.
Thanks,
Rajiv
I am trying to create and register a windows service with the following
code.
require "rubygems"
require "win32/service"
include Win32
svc = Service.newservice_name => "rajiv_service_name")
Error:
C:/Ruby/lib/ruby/gems/1.8/gems/win32-service-0.7.1-x86-mswin32-60/lib/win32/service.rb:368:in
`initialize': Access is denied. (Win32::Service::Error)
from
C:/Users/Rajiv/Documents/NetBeansProjects/MusicClockService/lib/register_bar_1.rb:9:in
`new'
from
C:/Users/Rajiv/Documents/NetBeansProjects/MusicClockService/lib/register_bar_1.rb:9
I tried changing to:
svc = Service.newservice_name =>SERVICE_NAME,
:service_start_name => "HOME\\Rajiv",
assword => "my_pwd" )
but it still did not work.
Thanks,
Rajiv