Displaying 7 results from an estimated 7 matches for "service_init".
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, rbServiceStatusStruct;
+static...
2006 Dec 07
0
Fwd: win32-service problems with patch
...of using it for running a
reliable-msg (drb) server and clients, I had some issues with the
process abnormally terminating, or just not responding. After much
tweaking and playing with it, I think I have something that''s reliable.
Here are a summary of the changes:
Logic changes:
* now service_init is called before anything is actually done
thread-wise (green or real). So, service_init needs to be fast, since
it''s done before the StartServiceCtrl stuff (SCM will be waiting). I
may change this so that START_PENDINGs are sent while in service_init,
but because that greatly complicate...
2005 Nov 23
0
Some code change suggestions of thenwin32-service package
...gt;
> Hi,
>
> I''d like to suggest some code modifications and tests.
>
> In service.c
> line # 50 : Commet out 1 line
> // SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0);
>
> line # 260 : Insert 4 lines
> if(rb_respond_to(self,rb_intern("service_init"))){
> rb_funcall(self,rb_intern("service_init"),0);
> }
> SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0);
>
> In Ruby source
> Insert ''service_init'' method for initialization
>
> I tested with long initialization and...
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 Oct 20
6
win32-service weirdness
...:3
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require''
... 7 levels...
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:750:in
`initialize''
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/bin/mongrel_service:52:in
`service_init''
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/bin/mongrel_service:153
from c:/ruby/bin/mongrel_service:18
It''s only the service that has a problem - running the app via mongrel
works fine.
cheers,
--
Dave Murphy (Schwuk)
http://schwuk.com
2007 Nov 09
0
[Fwd: win32-service problems with patch]
All,
I''ve been tinkering with Kevin''s patch. Seems to work much better as far
as service control goes. The only thing that initially concerned me was
the service_init code, but doing a 10 second sleep caused no problems in
testing.
Unless there are any objections, I''m going to put out win32-service
0.5.3 this weekend. This will be the last C version I put out. The next
version will be 0.6.0, and will be pure Ruby (and is partially complete).
Regard...
2006 May 14
6
Broken win32 service support for lastest mongrels.
Ok, this might sound bad... well, actually it is.
I''m my rewrite of mongrel_rails_service and provide a uniform set of
commands in the line of gem_plugin commands, found a few issues while
stopping the service.
Thinking that rails (1.1.2) was responsable, tested against my 1.0.0
rails app, both with the same results.
Again, reverted to mongrel 0.3.8, when services was working ok, with