win32utils-devel@rubyforge.org
2004-Feb-09 10:23 UTC
[Win32utils-devel] Curious pause/resume behavior
Hi all, While testing the pause/resume functionality with the daemon_test.rb script, I noticed this odd bit of behavior. It appears that sometimes, the pause command seems to actually stop the service. It doesn''t happen every time - just sometimes. Here is a bit of command line history to demonstrate: C:\eclipse\workspace\win32-service-0.4.0\test>ruby daemon_test.rb start 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
win32utils-devel@rubyforge.org
2004-Feb-10 11:05 UTC
[Win32utils-devel] Curious pause/resume behavior
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > win32utils-devel@rubyforge.org > Sent: Monday, February 09, 2004 8:20 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] Curious pause/resume behavior > > > Hi all, > > While testing the pause/resume functionality with the > daemon_test.rb script, I noticed this odd bit of behavior.... For future reference, this was actually caused by a bug in the daemon_test.rb code itself. Park spotted it and it works fine now. Dan