Sha256: 7c9a7639938877492caba4f1f00a6ac2276c27c21e4d8252416be6daa9f15d35

Contents?: true

Size: 920 Bytes

Versions: 1

Compression:

Stored size: 920 Bytes

Contents

#!/bin/sh
# Run logstash from source
#
# This is most useful when done from a git checkout.
#
# Usage:
#     bin/logstash <command> [arguments]
#
# See 'bin/logstash help' for a list of commands.
#
# NOTE: One extra command is available 'deps'
# The 'deps' command will install dependencies for logstash.
#
# If you do not have ruby installed, you can set "USE_JRUBY=1"
# in your environment and this script will download and use
# a release of JRuby for you.

# Defaults you can override with environment variables
LS_HEAP_SIZE="${LS_HEAP_SIZE:=500m}"

basedir=$(cd `dirname $0`/..; pwd)
. ${basedir}/bin/logstash.lib.sh

setup

case $1 in
  deps) install_deps ;;
  -*) 
    # is the first argument a flag? If so, assume 'agent'
    program="$basedir/lib/logstash/runner.rb"
    exec $RUBYCMD "$program" agent "$@"
    ;;
  *)
    program="$basedir/lib/logstash/runner.rb"
    exec $RUBYCMD "$program" "$@"
    ;;
esac

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-lib-1.3.2 bin/logstash