# Re: Ruby App as a Windows Service?

**URL:** <https://www.ruby-forum.com/t/re-ruby-app-as-a-windows-service/95582>\
**Category:** Ruby\
**Created:** [June 6, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/re-ruby-app-as-a-windows-service/95582 "2006-06-06T19:21:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 6, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/re-ruby-app-as-a-windows-service/95582/1 "2006-06-06T19:21:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 6, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/re-ruby-app-as-a-windows-service/95582/2 "2006-06-06T20:13:39Z")

</div>

On 6/6/06, DEBAUN, STEVE [Seminis/2400] [removed\_email\_address@domain.invalid](mailto: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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 6, 2006, 10:16pm UTC](https://www.ruby-forum.com/t/re-ruby-app-as-a-windows-service/95582/3 "2006-06-06T22:16:01Z")

</div>

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](http://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.
