bin/eatmysoul in eatmysoul-0.1.0 vs bin/eatmysoul in eatmysoul-0.1.1
- old
+ new
@@ -32,10 +32,19 @@
# POSSIBILITY OF SUCH DAMAGE.
require 'daemons'
require 'eatmysoul'
-Daemons.run_proc ('eatmysoul') do
+daemon_options = {
+ :app_name => "eatmysoul",
+ :dir_mode => (if File.writable?('/var/run') then :system else :script end),
+ :dir => '.',
+ :multiple => false,
+ :backtrace => true,
+ :monitor => true
+}
+
+Daemons.run_proc('eatmysoul', daemon_options) do
o = EatMySoul::Settings.new
Signal.trap("PIPE") { EatMySoul.connect_loop o }
EatMySoul.connect_loop(o)
end