# Forum: Ruby Re: Ruby App as a Windows Service?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
on 2006-06-06 21:21
I couldn't get win32-service to work.  I ended up using Firedaemon.

If you use Firedaemon, you don't need to use RubyScript2Exe.  Just have
Firedaemon run: 'ruby c:\foo\bar.rb'

sd
on 2006-06-06 22:13
On 6/6/06, DEBAUN, STEVE [Seminis/2400] <removed_email_address@domain.invalid>
wrote:
>
> I couldn't get win32-service to work.  I ended up using Firedaemon.
>
> If you use Firedaemon, you don't need to use RubyScript2Exe.  Just have
> Firedaemon run: 'ruby c:\foo\bar.rb'

These machines don't have ruby installed. I supposed I could use
AllInOne
Ruby, but I thought RubyScript2Exe would be easier.

Daniel

I saw win32-service, but have no idea how to use it. Can you provide an
example.

Thanks
on 2006-06-07 00:16
Jim F. wrote:

>
> These machines don't have ruby installed. I supposed I could use AllInOne
> Ruby, but I thought RubyScript2Exe would be easier.
>
> Daniel
>
> I saw win32-service, but have no idea how to use it. Can you provide an
> example.

I want to second Daniel's suggestion to use win32-service.  If no one
else comes up with a better example, you are welcome to download
KirbyBase (www.netpromi.com/kirbybase_ruby.html) and check out an
example usage.  In the distribution, I have a fairly rudimentary script
that turns the KirbyBase server script into a Windows service using
win32-service.  I have been running this process at my day job for
several months now for a production application and it works
flawlessly.  Hats off to Daniel and the win32 utilities team!

Jamey C.
This topic is locked and can not be replied to.