similar to: Hooks for win32-service

Displaying 12 results from an estimated 12 matches similar to: "Hooks for win32-service"

2004 Feb 09
1
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:
2006 May 10
7
Problems starting mongrel running a rails app as a service
Hi there I have a rails app that I want to run on a Win 2k server running Mongrel. I''ve downloaded the latest version and the win32-service gem and can run it with the mongrel_rails start -d command When I try to start the same app installed as a service I get the following error: "There was a problem starting the service: The service did not respond to the start or control
2004 Feb 05
1
Service event hooks question
In order to be able to call event hooks as I mentioned previously it looks like I''ll have to do something like this in Service_Ctrl(): // For example if(dwCtrlCode == SERVICE_CONTROL_STOP){ rb_funcall(self,rb_intern("send"),rb_intern("on_stop")); } There are a few problems. First, I''m not sure I''m calling that properly. Second, I don''t
2004 Feb 06
1
Service pause and resume
I committed a new version of service.c and daemon_test.rb. Now you can pause and resume a Ruby service module. Regards, Park Heesob --MIME Multi-part separator--
2005 Sep 08
11
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
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
2005 Nov 26
1
Another patch of win32-service for nice startup.
Hi, I believe this patch would be a perfect solution for a lengthy initialization application. Added hStartEvent, service_init, checkpoint increments. ============================================================ --- temp/service.c 2005-11-27 00:03:30.000000000 +0900 +++ service.c 2005-11-27 00:01:58.000000000 +0900 @@ -14,6 +14,7 @@ static VALUE cDaemonError; static VALUE rbServiceStruct,
2005 Nov 11
1
[Fwd: Thanks for win32-service]
Nice. :) -------------- next part -------------- An embedded message was scrubbed... From: Jamey Cribbs <cribbsj at oakwood.org> Subject: Thanks for win32-service Date: Fri, 11 Nov 2005 11:33:13 -0500 Size: 2505 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20051111/5b46cd4f/Thanksforwin32-service.eml
2006 Aug 12
0
Following your Mongrel thread
On 8/11/06, Matthew Bass <pelargir at gmail.com> wrote: > Hello, Luis. I''ve been following your Mongrel thread here: > http://rubyforge.org/pipermail/mongrel-users/2006-May/000210.html > > I''m also running Win2K and have been trying to get Mongrel running as a > service, without much luck. I tried running daemon_test.rb like you said and > was able to get
2004 Feb 06
0
Daemon method name changes
All, At the risk of annoying you all to death with seemingly trivial things, I was thinking that we should change a couple method names. I know that I myself had suggested "on_stop", "on_pause", etc, for the event hooks in the Daemon class. However, I think I will change those to "service_stop", "service_pause", etc. This isn''t a major issue,
2004 Feb 10
0
TCPServer failure within daemon
I wanted to see if I could setup a simple echo server to run as a service. So, using daemon_test.rb, I modified the Daemon class to something like this: require "socket" class Daemon def initialize @server = TCPServer.new("localhost",8888) end def service_main while state == RUNNING while session = @server.accept str =
2006 Dec 07
0
Fwd: win32-service problems with patch
Got this today. Please take a look and let me know what you think. - Dan ---------- Forwarded message ---------- From: Kevin Burge <kevin.burge at systemware.com> Date: Dec 7, 2006 6:45 AM Subject: win32-service problems with patch To: djberg96 at gmail.com Hi Daniel, Thanks for win32-service. In the process of using it for running a reliable-msg (drb) server and clients, I had some