bin/flapjack-worker in flapjack-0.5.4 vs bin/flapjack-worker in flapjack-0.5.5
- old
+ new
@@ -1,19 +1,10 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__) + '/../lib' unless $:.include?(File.dirname(__FILE__) + '/../lib/')
+$: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'flapjack/cli/worker'
require 'flapjack/applications/worker'
-
-at_exit do
- puts "Shutting down"
-end
-
-trap("INT") do
- puts "Caught shutdown signal, cleaning up."
- exit
-end
@options = Flapjack::WorkerOptions.parse(ARGV)
app = Flapjack::Worker::Application.run(:host => @options.host,
:port => @options.port,
:check_directory => @options.check_directory)