Displaying 20 results from an estimated 10000 matches similar to: "TCPServer failure within daemon"
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 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
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
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,
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?
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
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:
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
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
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
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
2010 Feb 24
2
tcpserver on port 25
Hi;
[root at 13gems beno]# netstat -ltnup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN 24560/mysqld
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN 27762/tcpserver
tcp 0 0 0.0.0.0:25
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,
2011 Sep 08
4
TCPServer in 1.9.2
Hi. First post in this group and I hope someone can help.
I am trying to teach myself Ruby with a long-term goal of doing some
web development using Ruby on Rails.
Note: version
C:\rails\hello>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
I have been going through Jeremy McAnally''s book "Mr. Neighborly’s
Humble Little Ruby Book" and there is a section in chapter 5
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--
2003 Sep 02
2
dovecot, vpopmail and djb's tcpserver
Hello!
I've tried to set up dovecot in conjuction with vpopmail, and running it
under djb's tcpserver instead of (x)inetd.
Btw - there was no reference to setting dovecot up using (x)inetd either in
the manuals/faqs i read, though I didn't search all that hard. Anyway, back
to my Q:
vpopmail uses vchkpw as an authentication mechanism, and with tcpserver I
can do relaycontrol (based
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
2004 Feb 02
4
Hooks for win32-service
Just trying to come up with hooks for win32-service. It looks like
Perl''s Win32::Daemon defines these:
start....................The service is starting.
pause....................The service is entering a paused state.
continue.................The service is resuming from a paused state.
stop.....................The service is stopping
running..................The service is running
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 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