Hi all, I created a "pure" branch on github that uses the code Heesob posted a while back: http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html However, I couldn''t make it work on my Vista laptop. c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb start VERSION: 0.8.0 C:/Ruby187/lib/ruby/gems/1.8/gems/win32-service-0.8.0/lib/win32/service.rb:7 53:in `start'': The servi ce did not respond to the start or control request in a timely fashion. (Win32::Service::Error) from demo_daemon_ctl.rb:68 I also tried with Ruby 1.9/mingw. Same result. Details from the event log: - System - Provider [ Name] Service Control Manager [ Guid] {555908D1-A6D7-4695-8E1E-26931D2012F4} [ EventSourceName] Service Control Manager - EventID 7000 [ Qualifiers] 49152 Version 0 Level 2 Task 0 Opcode 0 Keywords 0x80000000000000 - TimeCreated [ SystemTime] 2011-08-22T18:11:33.000Z EventRecordID 154734 Correlation - Execution [ ProcessID] 0 [ ThreadID] 0 Channel System Computer imperator Security - EventData param1 Demo param2 %%1053 Only thing that looks odd is "param2", though I don''t know if that''s significant anyway. Any ideas? Regards, Dan
On Mon, Aug 22, 2011 at 12:16 PM, Daniel Berger <djberg96 at gmail.com> wrote:> Hi all, > > I created a "pure" branch on github that uses the code Heesob posted a while > back: > > http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html > > However, I couldn''t make it work on my Vista laptop. > > c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb > start > VERSION: 0.8.0 > C:/Ruby187/lib/ruby/gems/1.8/gems/win32-service-0.8.0/lib/win32/service.rb:7 > 53:in `start'': The servi > ce did not respond to the start or control request in a timely fashion. > (Win32::Service::Error) > ? ? ? ?from demo_daemon_ctl.rb:68Same result with this code: http://rubyforge.org/pipermail/win32utils-devel/2008-November/001266.html Any ideas? Regards, Dan
On Mon, Aug 22, 2011 at 2:34 PM, Daniel Berger <djberg96 at gmail.com> wrote:> On Mon, Aug 22, 2011 at 12:16 PM, Daniel Berger <djberg96 at gmail.com> wrote: >> Hi all, >> >> I created a "pure" branch on github that uses the code Heesob posted a while >> back: >> >> http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html >> >> However, I couldn''t make it work on my Vista laptop. >> >> c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb >> start >> VERSION: 0.8.0 >> C:/Ruby187/lib/ruby/gems/1.8/gems/win32-service-0.8.0/lib/win32/service.rb:7 >> 53:in `start'': The servi >> ce did not respond to the start or control request in a timely fashion. >> (Win32::Service::Error) >> ? ? ? ?from demo_daemon_ctl.rb:68 > > Same result with this code: > http://rubyforge.org/pipermail/win32utils-devel/2008-November/001266.htmlSome debugging indicates that it''s hanging on this line: WaitForSingleObject(@arg_event, INFINITE) I haven''t figured out why yet, though. Regards, Dan