Created
August 9, 2012 04:19
-
-
Save sawanoboly/3300905 to your computer and use it in GitHub Desktop.
install fluentd under rvm. and create global command for UPstart.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -l | |
# rvm get latest && rvm reload #<< current rvm older than 1.10 | |
useradd -d /opt/fluentd --system -c fluentd -s /usr/sbin/nologin --user-group fluent | |
rvm get stable | |
mkdir -p /opt/fluentd | |
cd /opt/fluentd | |
rvm install ruby-1.9.3-p194 | |
rvm use 1.9.3-p194@fluentd --create | |
echo rvm use 1.9.3-p194@fluentd > ./.rvmrc | |
rvm rvmrc trust ./.rvmrc | |
cat <<"EOL" > Gemfile | |
source "http://rubygems.org" | |
gem "fluentd" | |
EOL | |
bundle | |
fluentd --setup ./etc | |
rvm wrapper 1.9.3-p194@fluentd bootup fluentd | |
chown -R fluent.fluent /opt/fluentd | |
bootup_fluentd --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://raw.github.com/gist/3300905/5704449db49560ef669f9597a0b362b84e4b1389/fluentd_install.sh | bash -l