[Win32utils-devel] win32-service patch

Daniel Berger djberg96 at gmail.com
Mon Jun 17 13:58:12 UTC 2013


> >
> > However, it seems the JVM takes too long to spin up. When I try to start
> the
> > service, I get the "did not start in a timely fashion" error with JRuby.
> > Although, I would think the service_init method would give it enough
> time.
> > From watching the log file, though, it doesn't look like it ever gets to
> > service_init.
> >
> I guess this is an environment issue.
>
> In my test with jruby-1.7.4, it works fine and the log file looks good.
>
> 0
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> service_main entered at: 2013-06-17 22:21:12 +0900
> Args: DemoSvc,hello
> Service is running as of: 2013-06-17 22:21:32 +0900
> Service is running as of: 2013-06-17 22:21:52 +0900
> Service is running as of: 2013-06-17 22:22:12 +0900
>
>
Weird. I installed the latest JRuby x64 + JVM:

jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) Client VM
1.7.0_21-b11 [Windows
7-x86]

This is Windows 7 Home Premium, btw.

Still get this error:

SystemCallError: Unknown error 1053 - StartService: The service did not
respond to the start or control request in a timely fashion.
  raise_windows_error at
c:/Users/djberge/Repositories/win32-service/lib/win32/windows/helper.rb:36
start at
c:/Users/djberge/Repositories/win32-service/lib/win32/service.rb:725
(root) at examples\demo_daemon_ctl.rb:68

Well, I'm happy to know that it works for someone. I'll try it on my
Windows 7 Pro box and see if it makes any difference.

Regards,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130617/94a99c37/attachment.html>


More information about the win32utils-devel mailing list