similar to: Daemon method name changes

Displaying 20 results from an estimated 11000 matches similar to: "Daemon method name changes"

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
2005 Dec 01
1
service_cli.rb
Hi, I just got done using win32/service to run a very small/hack-ish "Riki" WEBrick service. Very cool stuff. Thanks. So, in the process, I noticed a lot of the "control" start/install/etc. command line parser stuff looked a bit boilerplate, so I pulled it out into a helper function "service_cli" (for lack of a better name). Its simple, but it allows me to do away
2007 Aug 07
0
[ win32utils-Bugs-12881 ] Cannot wait on Process - service_daemon/service_main
Bugs item #12881, was opened at 2007-08-07 19:17 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=12881&group_id=85 Category: win32-service Group: None Status: Open Resolution: None Priority: 3 Submitted By: John Leake (ozwaldtwistle) Assigned to: Nobody (None) Summary: Cannot wait on Process - service_daemon/service_main Initial Comment: First of
2004 Feb 10
0
Daemon help
I''m having some trouble separating the Daemon class stuff from the Service Control stuff. I have a "daemon.rb" file in ''C:\''. I also have a daemonctrl.rb script in another directory. It installs fine, but I can never start it successfully. What am I doing wrong? Dan # daemon.rb in ''C:\'' require "win32/service" include Win32
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
2004 Apr 09
2
Issues with win32-service Daemon
Hi all, I wrote a little echo client to run as a service. I have a couple of problems with this. First, any time I try to define anything in "initialize", the service fails to start. Any idea why? Also, this service runs for a while, then just quits for no reason that I can see. The Event Log merely says, "The Abba service terminated unexpectedly". Any ideas on
2005 May 14
4
Problems with custom service and webrick
Hi all, Windows XP Pro Ruby 1.8.2 I''m having a couple of problems with the following service. The first issue is that the code in service_start doesn''t seem to fire off. The second problem is that any attempt to do ''require "webrick"'' within webrick_daemon.rb causes the service to fail on start. Any ideas? # webrickctl.rb
2006 Feb 20
1
Fwd: Win32::Daemon, Problems with service_stop
Anyone want to take a stab at this? I''ve brought it up before but it''s been a while. Dan Note: forwarded message attached. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An embedded message was scrubbed... From: "Luis
2011 Aug 29
0
Fwd: [win32-service] win32 daemon error - Service_Main thread exited abnormally (#4)
Any suggestions? ---------- Forwarded message ---------- From: 2potatocakes <reply+i-1463859-6ae63452bd734578892fcf4b571ee941f465e643 at reply.github.com> Date: Mon, Aug 29, 2011 at 12:40 AM Subject: Re: [win32-service] win32 daemon error - Service_Main thread exited abnormally (#4) To: djberg96 at gmail.com Thanks for looking at this guys. Have updated the strcpy line.. I''m
2006 Jun 20
1
Portable Daemon
I am wrapping up work on a "PortableDaemon" gem. It is pure Ruby and wraps win32-service and the daemons gems. Allowing users to write against a common interface (pretty much the win32-service call back structure). Under Linux it captures a couple signals to support the service_stop (TERM) and service_paramchange (USR1). It also adds a "run" feature to the win32 implementation
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 Feb 20
0
Win32 service and blocking code in service_main
Hello mailing list! Sorry for the personal/private mail I sent to Daniel and Park, but just a few minutes ago I subscribed to this list. I have found the solution, for webrick, mongrel and other webserver (well I guess). If the code in service_main is blocked (like the webrick dispatcher), the service_main function never exit/left, so service.mainloop never terminates and service control
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,
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 =
2007 Nov 24
5
Service.start arguments failing or causing segfault
Hi, Unless I''m mistaken the final arguments to Service.start should be passed to the Daemon''s service_main method. Correct? I modified the Service.start method (now in CVS) to look something like this: def self.start(service, host=nil, *args) ... num_args = args.length if args.empty? args = nil else args.unshift(service) # Necessary?
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
2006 Oct 26
2
The win32-service patch is committed - and now, some questions
Hi all, I *finally* committed the patch from Patrick Hurley (you know, the one he submitted way back in June). Looks like it works. I''ve also revamped the code under the examples directory. There''s now a tdaemon.rb (the test daemon) and tdaemon_ctl.rb (the test daemon controller). Before I release this into the wild I want to make sure I document how to use it properly.
2006 May 21
0
Mongrel as win32-service, round3.
Hello lists! This is not spam, but included the 2 lists (mongrel-users and win32utils-devel) because the both are involved. Attached is the 3rd version of a simple http_service script used previously to get the things right for the mongrel Rails service. With the modifications Zed implemented the past days (into the beta gem, 0.3.13). Now the service part works better. Still, a few things must
2006 Jun 18
7
[Fwd: Ruby Win32-Service]
Thoughts? Dan -------------- next part -------------- An embedded message was scrubbed... From: "Patrick Hurley" <phurley at gmail.com> Subject: Ruby Win32-Service Date: Sun, 18 Jun 2006 12:46:01 -0400 Size: 2863 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20060618/cc346796/attachment.eml
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: