# Librmpd & rails

**URL:** <https://www.ruby-forum.com/t/librmpd-rails/126745>\
**Category:** Rails\
**Created:** [January 21, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/librmpd-rails/126745 "2008-01-21T21:39:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [January 21, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/librmpd-rails/126745/1 "2008-01-21T21:39:29Z")

</div>

Hi all!

I’m trying to create a mpd ruby on rails client. librmpd supports  
callbacks. For example the “CURRENT\_SONG\_CALLBACK” callback. But If  
there’s no request for a rails webpage, the callback isn’t triggered (of  
course).

Does anyone have a way to overcome this problem? I thought about using  
something like backgroundrb, but I can’t come up with a decent solution.

Does anyone have a good idea to make this work?

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [January 21, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/librmpd-rails/126745/2 "2008-01-21T23:42:20Z")

</div>

I found daemon\_generator tonight. Does someone has any experience with  
this?  
I also read these slides:

> **[Angels And Daemons](https://www.slideshare.net/vishnu/angels-and-daemons)**
>
> Angels & Daemons Supporting your rails application with custom daemons Tammer Saleh, ...

which also seems a decent solution but it looks a bit separate from  
rails.
