Skip to content

Instantly share code, notes, and snippets.

@kzk
Created October 11, 2012 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kzk/3875967 to your computer and use it in GitHub Desktop.
Save kzk/3875967 to your computer and use it in GitHub Desktop.
/usr/sbin/td-agent
#!/usr/lib/fluent/ruby/bin/ruby
ENV["FLUENT_CONF"]="/etc/td-agent/td-agent.conf"
ENV["FLUENT_PLUGIN"]="/etc/td-agent/plugin"
ENV["FLUENT_SOCKET"]="/var/run/td-agent/td-agent.sock"
# Please add these lines
ENV["GEM_HOME"]="/usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/"
ENV["GEM_PATH"]="/usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/"
load "/usr/lib/fluent/ruby/bin/fluentd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment