Ruby-Dbus-Daemon

Hi girls and boys!

This is a small wrapper lib around the dbus-daemon executable.

Installation

sudo gem install pangdudu-ruby-dbus-daemon --source=http://gems.github.com

Usage

to start a dbus daemon:

require 'dbus-daemon'
dbd = DbusDaemon.new "dbus.configfile.conf"
dbd.start_daemon

to kill the daemon (and the processes that spawned on the console):

dbd.stop_daemon

Warning

If you CTRL-C your app, the spawned daemon will continue running. You’ll need to “ps xaf | grep dbus-daemon” and “kill -9 pid” on your own. Got no time for a pretty solution right now. Once ruby-dbus is further on the way, i’ll rewrite it with a real *.so and a ruby lib wrapping it.

Rule the universe!

Ride the dbus with me, yeah yeah.

License

GPL -> www.gnu.org/licenses/gpl.txt