reply-to of this list need to get fixed ;-) Forward message that didn't get into the list.
On Jan 2, 2008 9:22 PM, Tim Perrett <[EMAIL PROTECTED]> wrote: > Hey All > > I was just wondering if anyone had tried deploying merb as a windows > service? I am familiar with the sc.exe tool ( > http://support.microsoft.com/kb/251192 > ) - do you think adding the correct paths and such to the merb bin > will work? I am going to try this tomorrow but wondered what peoples > thoughts were? > No, it wouldn't. ruby.exe do not offer out of the box solution for this, you need win32-service gem win32utils project: gem install win32-service. 1 year ago I used that project to power mongrel_service. Found that Rails+Mongrel+Ruby don't play nice on how windows process, specially services work. I needed to move from pure/pre-compiled ruby solution to custom build solution using external executables for it. You can unpack the original code of mongrel_service 0.1 to see how it worked with Win32::Daemon class back then. gem install mongrel_service -v '0.1' gem unpack mongrel_service -v '0.1' Now, you can check the 0.3.4 code that uses ServiceFB library and FreeBASIC to build a Service-aware executable that act as connection between ruby and SCM. > Many thanks HTH, -- Luis Lavena Multimedia systems - A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams _______________________________________________ Merb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/merb-devel
