PDA

View Full Version : How to create a Windows Service using Ruby


Zubair Younas
March 28th, 2006, 04:46 AM
Dear all,

I am a novice to Ruby. My first challenge is to develop a Windows Service in Ruby. I am unable to find a way to do so yet. Any of you who can help me regarding this will be highly appreciated.

Zubair Younas.

rob
March 28th, 2006, 04:56 AM
I think Windows services have to be .sys or .exe files, but I'm not 100% sure on this. Either way, an executable will be needed. Perhaps your best bet is to search for a skeleton in C and make a Ruby module that uses its headers to make the necessary calls and receive the necessary IO, events, etc.

steve_d555
March 28th, 2006, 03:33 PM
Check out Win32 Utils (http://rubyforge.org/projects/win32utils/) at RubyForge. It looks like there is a package called win32-service which may be what you are looking for (I have never used it, sorry).