summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-02-26 11:40:45 +0200
committerSaku Ytti <saku@ytti.fi>2014-02-26 11:40:45 +0200
commit49ac63e8609d265986506fc5589b3fed83bc71a4 (patch)
treee06bb3c9c053ebd5b892d8ca3ba6166806d09f27 /bin
parent5316f643666399ed2309ae239d2fe7b393c9e419 (diff)
Fix missing dependency
Also catch all load errors in future by moving require 'oxidized' inside the block
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oxidized3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/oxidized b/bin/oxidized
index 72db61a..36ab250 100755
--- a/bin/oxidized
+++ b/bin/oxidized
@@ -1,10 +1,9 @@
#!/usr/bin/env ruby
-require 'oxidized'
-
trap("INT") { exit } # sinatra will otherwise steak this from us
begin
+ require 'oxidized'
Process.daemon unless $DEBUG
Oxidized.new
rescue => e