Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cookbooks/papertrail/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
app_name = node[:applications].keys.first
env = node[:environment][:framework_env]
PAPERTRAIL_CONFIG = {
:syslog_ng_version => '3.3.5',
:syslog_ng_version => '3.3.5-r1',
:remote_syslog_gem_version => '~>1.6',
:port => 11111111111111, # YOUR PORT HERE
:hostname => [app_name, node[:instance_role], `hostname`.chomp].join('_'),
Expand Down Expand Up @@ -81,7 +81,7 @@

execute 'install remote_syslog gem' do
command %{gem install remote_syslog -v '#{PAPERTRAIL_CONFIG[:remote_syslog_gem_version]}'}
creates '/usr/bin/remote_syslog'
creates '/usr/local/bin/remote_syslog'
end

# remote_syslog config file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ start() {
ebegin "Starting ${NAME}"

start-stop-daemon --start --pidfile $PIDFILE --name $NAME \
--exec /usr/bin/remote_syslog -- $DAEMON_ARGS
--exec /usr/local/bin/remote_syslog -- $DAEMON_ARGS

eend $?
}
Expand All @@ -18,7 +18,7 @@ stop() {
ebegin "Stopping ${NAME}"

start-stop-daemon --stop --pidfile $PIDFILE --name $NAME \
--exec /usr/bin/remote_syslog
--exec /usr/local/bin/remote_syslog

eend $?
}