[Win32utils-devel] Stopping services
Daniel.Berger at qwest.com
Thu Sep 8 14:41:57 EDT 2005
> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
> Nathaniel Talbott
> Sent: Thursday, September 08, 2005 11:54 AM
> To: Development and ideas for win32utils projects
> Subject: [Win32utils-devel] Stopping services
> I'm back to getting stuff to run as a Windows service, and am
> running in to a problem. My service (a Daemon ruby class)
> installs and starts fine, but when I try to stop it, I get:
> C:\workspaces\default\tahoe>ruby script\service stop
> script/service:77:in `stop': An exception occurred in the
> service when handling
> the control request. (Win32::ServiceError)
> from script/service:77
> from script/service:76:in `call'
> from script/service:88
> Note that I only get this if the service has successfully
> made it in to service_main - if I stop it before that, it stops OK.
Yes, I had that issue a while back. See
It was never resolved, but it seemed to be harmless. Yes, it raised an
error, but the service does stop. Not ideal, but liveable.
My *guess* is that it has something to do with the fact that
win32-service spawns a native thread (in the service_mainloop function)
which is, afaik, required. But, that's a guess. If I'm right, I don't
know that it's a solveable issue until Ruby 2.0.
If I'm wrong, then I'm not sure what the issue is. Any ideas Heesob?
More information about the win32utils-devel