Trying to get a ruby win32 service running on my winxp. Downloaded the
win32-installer from raa, it seemed to install OK. Then trying this
sample code:
require “win32/service”
include Win32
s = Service.new(“some_machine”)
…
when I run this I get "The RPC Server is unavailable
(Win32::ServiceError)
when I run this I get "The RPC Server is unavailable
(Win32::ServiceError)
at the s = … line.
Any ideas?
My suggestion would be to open the Windows Services console and make
sure the Remote Procedure Call (RPC) service and/or the RPC Locator
service are running.
Thanks. I’ve done that. Both are running, but I have the same error. I
also tried a few different options in the logon section, same result.
Any other clues?
Thanks. I’ve done that. Both are running, but I have the same error. I
also tried a few different options in the logon section, same result.
Any other clues?
The “some_machine” is just a stub for whatever machine you want to
install it on, it isn’t meant to be used literally. If you just want
to install it on your local box, remove “some_machine”, e.g. service =
Service.new.
Regards,
Dan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.