Displaying 3 results from an estimated 3 matches for "handle_scm".
2007 Nov 18
4
Need help with win32-service, failure actions
Hi all,
I''m trying to get failure action support working. I''ve modified the
Service.configure method to accept the following options:
failure_reset_period
failure_command
failure_reboot_message
failure_actions
failure_delay
I''ve got the failure_command and failure_reboot message working, but the
rest aren''t working properly. I''m mostly focused on
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
...rvice = [0.chr, 0.chr].pack(''pp'') + proc_status
service_buf = enum_service * 1000
bytes_needed = [0].pack(''L'')
services_returned = [0].pack(''L'')
resume_handle = [0].pack(''L'')
bool = EnumServicesStatusEx(
handle_scm,
SC_ENUM_PROCESS_INFO,
SERVICE_WIN32 | SERVICE_DRIVER,
SERVICE_STATE_ALL,
service_buf,
service_buf.size,
bytes_needed,
services_returned,
resume_handle,
group
)
if bool
num_services = services_returned.unpack(''L'').first
index = 0
1.upto(num_se...
2008 Apr 19
0
[Fwd: win32-service-0.6.1 using a Rails Model]
Any ideas here? Line 911-921 indicates a failure in OpenService:
handle_scs = OpenService(
handle_scm,
service,
SERVICE_QUERY_STATUS
)
if handle_scs == 0
error = get_last_error
CloseServiceHandle(handle_scm)
raise Error, error
end
Something to do with WEBrick perhaps?
Regards,
Dan
-------------- next part --------------
An embedded message was scrubbed...
From: david <dav...