search for: tdaemon_ctl

Displaying 2 results from an estimated 2 matches for "tdaemon_ctl".

2007 Aug 07
0
[ win32utils-Bugs-12881 ] Cannot wait on Process - service_daemon/service_main
...nnot wait on Process - service_daemon/service_main Initial Comment: First of all a warm thank you to all contributors of this excellent library. Windows XP Pro SP2 Ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] Service 0.5.2 Process 0.5.3 I am using code based on the examples tdaemon.rb and tdaemon_ctl.rb Within tdaemon.rb/service_main() I launch an exe using Process.create and then use Process.waitpid2(process_id) to catch it if it crashes and then restart it. This works fine but when I call service_stop to kill the process it the call blocks until I kill the exe externally. Any suggestions ?...
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. Based on what I experienced it now looks like users will need to put this snippet in their service_main: # You will see this line in tdaemon.rb while state == RUNNING ||...