Displaying 20 results from an estimated 7000 matches similar to: "win32/service... still with problems."
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 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
2007 Sep 27
2
Threads and IO (gets) still a problem for us?
Hello Guys,
I''m trying to get this working:
t = Thread.new {
while true
puts "printing a line"
sleep 2
end
}
gets
t.exit
puts "exiting"
As you see, the idea is get multiple "printing a line" until a hit enter.
The thing is this is a known problem for 1.8 on win32.
I tried both mingw, VC6 and VC8 with the same results.
Saw a post
2008 Jun 04
3
Ruby 1.8.7
Hi all,
Has anyone else been able to build Ruby 1.8.7 from source on Windows? I
get this when I run configure:
C:\>win32\configure.bat
find: =: No such file or directory
Creating Makefile
Creating Makefile(6) : fatal error C1085: Cannot write compiler
generated file: '''': Invalid argument
NMAKE : fatal error U1077: ''cl'' : return code ''0x1''
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
2006 Jun 19
9
win32-service patch
Attached is a patch and my service.c if there is any difficulty
applying the patch. I did the following:
1. Created a ruby thread (Ruby_Service_Ctrl), that polls against a
simple integer value (protected by a critical section). I was worried
this would be "expensive"; however, I found the rb_thread_polling
method and it seems to work well.
2. When an event occurs in Service_Ctrl it
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
2008 Jan 23
6
JRuby and callbacks?
Hi all,
Any Java/JRuby folks on the list? I''d like to see if we can implement
api.c for JRuby using JNA and see how it handles the callbacks.
I''m not a Java guy, nor do I know JNA, but I''ll take a stab at it if no
one else on the list does.
Here are a couple of useful links:
http://www.infoq.com/news/2007/09/jna-jruby
https://jna.dev.java.net/
Regards,
Dan
This
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all,
I''m trying to get the allocation size of a file via a file handle
(rather than its name). The example below works for FileNameInformation
but I can''t get it to work as expected for FileStandardInformation.
Here''s some sample code:
# query_test.rb
require ''windows/handle''
require ''windows/error''
include Windows::Handle
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?
2008 Jun 10
7
Unraveling a FAR*
Hi all,
Just looking over fole_s_connect() in win32ole.c and I noticed this bit:
hr = CLSIDFromProgID(pBuf, &clsid);
...
hr = GetActiveObject(&clsid, 0, &pUnknown);
...
hr = pUnknown->lpVtbl->QueryInterface(
pUnknown,
&IID_IDispatch,
(void **)&pDispatch
);
Using win32-api, that would be something like:
IID_IUnknown =
2007 Mar 26
16
mongrel_service fails to get "service.exe" from ppid?
Konnichiwa Mongrel users,
mongrel_service cannot run as a windows service under my environment,
with the windows message :
"error 1053 : The service did not respond to the start or control
request in a timely fashion."
>From a part of "ServiceFB.log" at c:/ruby/bin,
mongrel_service failed to get the process name of "service.exe".
2008 Jul 08
12
Some more win32-security: SID.create
Hi all,
How does this look as a general approach to a SID.create method:
# Creates and initializes
def self.create(authority, *sub_authorities)
if sub_authorities.length > 8
raise ArgumentError, ''maximum of 8 subauthorities allowed''
end
authorities = Array.new(8, 0)
authorities.replace(sub_authorities)
count = authorities.select{ |e| e > 0 }.size
2006 Dec 04
9
mongrel install on win32 XP problems
I can''t get mongrel installed on a Win XP. I keep getting some unknown
error with this "win32-service-0.5.2". While it states results are
logged, the file is empty - not much help. I even tried complete
uninstall of ruby and reinstalled ruby 1.8.5-21. But no luck.
Oddly, I had no problem installing earlier on a Win 2K machine. Is
there something special about XP?
here
2008 Apr 25
4
win32-mmap test failures
Hi all,
This is odd. It looks to me like we have all 4 variations of memcpy set
in Windows::MSVCRT::Buffer but somehow this one creeps up. I actually
noticed it in a few cases with that earlier mmap sub/replace example,
but I wasn''t sure what was happening.
Note that windows-api 0.2.3 and windows-pr-0.8.3 are the latest versions
in CVS, but this happens with windows-api-0.2.2 and
2007 Dec 05
21
Fwd: win32/process problem
Any ideas?
---------- Forwarded message ----------
From: Christian Kerth <christian.ke... at dynamicmedia.at>
Date: Dec 5, 8:28 am
Subject: win32/process problem
To: comp.lang.ruby
I have an application that consists of serveral independent parts.
I want to use the Windows Process API to spawn the different
processes.
e.g.
require ''rubygems''
require
2008 Nov 10
4
PathFindExtension and wide strings
Hi,
What''s happening here?
require ''windows/path''
require ''windows/unicode''
include Windows::Path
include Windows::Unicode
file_a = ''bar.txt''
file_w = multi_to_wide(file_a)
p PathFindExtensionA(file_a) # ''.txt'' => OK
p PathFindExtensionW(file_w) # ''.'' => WRONG
Is Ruby chopping the
2006 Oct 06
13
Need some help with latest win32-mmap
Hi all,
I''ve got the latest win32-mmap code checked into CVS. Unfortunately, it
seems that I''m not able to open an existing mapping and retrieve set
data. Below is a simple example that seems like it ought to work but
doesn''t. Any ideas?
# map1.rb
require ''win32/mmap''
include Win32
mmap = MMap.new(:name => ''alpha'', :size
2008 Jun 25
3
[OT] Byacc error
Hi all,
Yeah, I''m going OT here...
I''m not entirely sure I understand how Ruby builds parse.y on Windows,
but it works. However, when I changed all instances of "Ruby" to
"Sapphire", and renamed all the source files, I suddenly started getting
this error:
byacc ./parse.y
''byacc'' is not recognized as an internal or external command,
2008 Jan 18
5
Temporarily setting the output language for cmd.exe
Hi all,
One of the net-ping users reported that the Net::Ping::External library
was returning false positives on Vista. Basically, it does a ''ping -n1
host'' and checks for certain error strings.
The problem is that the error strings it checks for are in English. The
user in question is using a cmd.exe that''s entirely in Swedish (I think).
Is there any way I can