From: Phillip Gawlowski Date: 2011-10-18T00:20:12+09:00 Subject: Re: Signal handling cross-platform On Mon, Oct 17, 2011 at 4:10 PM, John H. wrote: > > I feel brave I shall look into the modules as recommended, unless > someone else has anything to offer first? Check out the win32-service gem from http://win32utils.rubyforge.org/ It allows you to create a Daemon (well, Service) for Windows. If the gem doesn't work for you, it should at least provide you a pointer as to which messages Windows sends (there's more-or-less two kinds: Service control messages, and the WM_ENDSESSION message which precedes a shutdown/logoff), and how to respond to them in your code. Note: I have 0 experience with this gem or the win32utils. -- Phillip Gawlowski gplus.to/phgaw | twitter.com/phgaw A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.               -- Leibniz