Skip to content

Commit

Permalink
make bin/logstash a shell script now that we don't use bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Nov 7, 2012
1 parent 25d9936 commit f0473af
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions bin/logstash
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/usr/bin/env ruby
#!/bin/sh

$: << File.dirname($0) + "/../lib"
if [ -d .git ] ; then
export GEM_HOME=./vendor/bundle/jruby/1.9
export GEM_PATH=
fi

require "rubygems"
require "logstash/runner"

# If the first argument is a flag, assume agent.
if ARGV[0] =~ /^-/
ARGV.unshift("agent")
end

LogStash::Runner.new.main(ARGV)
export RUBYLIB=./lib
ruby lib/logstash/runner.rb "$@"

0 comments on commit f0473af

Please sign in to comment.