alhafoudh / syslog2jabber

Syslog to Jabber notification service
7 stars 2 forks source link

fix config.yml loading when called by external wrapper script #2

Closed diegosouza closed 9 years ago

diegosouza commented 9 years ago

Hello,

I've created a wrapper to syslog2jabber.rb called application.rb:

require 'daemons'

Daemons.run('syslog2jabber.rb')

So, when I call it as:

ruby application.rb run

I get the following error:

/usr/lib64/ruby/2.0.0/psych.rb:299:in `initialize': No such file or directory - config.yml (Errno::ENOENT)

I'm sending you a fix, so it works with or without the wrapper script.

alhafoudh commented 9 years ago

Good job. Thanks!