search for: handle_scs

Displaying 3 results from an estimated 3 matches for "handle_scs".

Did you mean: 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
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 s...
2007 Nov 24
5
Service.start arguments failing or causing segfault
...ng like this: def self.start(service, host=nil, *args) ... num_args = args.length if args.empty? args = nil else args.unshift(service) # Necessary? args = [args.join("\000")].pack(''p*'') # Must pack? end unless StartService(handle_scs, num_args, args) ... end I wasn''t sure if I needed to explicitly push the service name onto the array, but it does segfault without it. I also wasn''t sure if I needed to explicitly pack the array. Again, it segfaulted without it. To test, I modified the demo_daemon.rb fil...