search for: serviceerror

Displaying 6 results from an estimated 6 matches for "serviceerror".

2005 Feb 28
3
test/unit error report for win32-service
...F.............tc_service.rb:134: warning: redefining constant Struct::Win32Service ..E.tc_service.rb:199: warning: redefining constant Struct::Win32ServiceStatus .F Finished in 7.481 seconds. 1) Failure: test_create_delete(TC_Win32Service) [tc_service.rb:164]: Exception raised: Class: <Win32::ServiceError> Message: <"The specified service already exists."> ---Backtrace--- tc_service.rb:165:in `create_service'' tc_service.rb:165:in `test_create_delete'' tc_service.rb:164:in `assert_nothing_raised'' tc_service.rb:164:in `test_create_delete'' ---------...
2006 Jun 19
2
win32-service cvs - potential issue with Service.services
Hi all, I''m preparing win32-service for an 0.5.1 release. I''ve made a couple minor changes and altered the test suite a bit. It passes on my box here, except that about half the time I get this error: 1) Error: test_services(TC_Win32Service): Win32::ServiceError: OpenService() call failed: The handle is invalid. test/tc_service.rb:227:in `services'' test/tc_service.rb:227:in `test_services'' 45 tests, 145 assertions, 0 failures, 1 errors If I run this test by itself via -n test_services, it always passes. Is this just an issue w...
2005 Sep 08
11
Stopping services
...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. I wanted to back up and see if the examples worked O...
2004 Feb 09
1
Curious pause/resume behavior
...art VERSION: 0.4.0 Ok, started C:\eclipse\workspace\win32-service-0.4.0\test>ruby daemon_test.rb pause VERSION: 0.4.0 Ok, paused C:\eclipse\workspace\win32-service-0.4.0\test>ruby daemon_test.rb resume VERSION: 0.4.0 daemon_test.rb:88:in `resume'': The service has not been started. (ServiceError) from daemon_test.rb:88 At this point, I looked at the service using the gui and it was stopped. Any idea why this might be? Dan
2004 Apr 09
2
Issues with win32-service Daemon
...e\workspace\ruby_foo\service_stuff\myservice.rb'' bin = "ruby " + file if Service.exists?(Name) if Service.status(Name).current_state == "running" Service.stop(Name) sleep 3 puts "Stopped service" end n = 3 begin Service.delete(Name) rescue Win32::ServiceError => e puts "Unable to delete: #{e}" if n > 0 puts "Retrying..." sleep 2 n -= 1 retry else STDERR.puts "Unable to delete. Exiting..." exit end end puts "Deleted service" end svc = Service.new svc.create_service{ |s| s.servic...
2006 May 22
9
win32/service... still with problems.
Hello list, In my quest to get Mongrel working as service for win32, found some problems with win32/service that make it impossible to solve. Attached is the simplest service script I could do with ruby, which depends on win32/service. I found that doing anything complex in service_stop (killing threads, doing file handling, even sleeping for 0.25 seconds). crash the service with backtraces (of