Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Allow daemons script to be executed from any dir #70

Open
wants to merge 191 commits into
base: master
Choose a base branch
from

Conversation

Boylancl
Copy link

Look for newrelic_aws in the directory relative to the daemons script's absolute path.

The below is now able to run successfully

Example Execution Pattern:
sudo BUNDLE_GEMFILE=<path_to_plugin>/newrelic_aws_cloudwatch_plugin-latest/Gemfile /usr/local/bin/bundle exec <path_to_plugin>/newrelic_aws_cloudwatch_plugin-latest/bin/daemon run

Seth Schwartzman and others added 30 commits April 12, 2013 19:50
             - use ssl for rubygems
             - move towards a gem structure (easy install)
             - module/class/file naming convention
        - low resolution and lag challenges
        - easy to add additional "collectors"
nathanhumbert and others added 23 commits September 23, 2014 14:18
The link to http://www.paulsamiq.com/how-to-use-amazons-iam-with-new-relics-aws-plugin/ now redirects to a random "advertising" page on http://www.chicagotribune.com/brandpublishing/. There is no longer relevant information at that URL.
Remove inaccurate link about AWS IAM
support region eu-central-1, ap-northeast-2
…efresh

Bump to 3.3.4, support ap-south-1
…0160902

Update the AMI link to current version
Modify regions config key to use proper YAML syntax in all places
Add Application Load Balancer collector
Updated README to include Contributing paragraph
bin/daemon Outdated
@@ -10,5 +10,6 @@

require 'daemons'

pwd = File.join(File.dirname(File.expand_path(__FILE__)), "../")
Daemons.run('bin/newrelic_aws', :dir_mode => :normal, :dir => pwd)
pwd=File.dirname(File.expand_path(__FILE__))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pwd has no use after L15. Consider in-lining the value there.

bin/daemon Outdated
Daemons.run('bin/newrelic_aws', :dir_mode => :normal, :dir => pwd)
pwd=File.dirname(File.expand_path(__FILE__))

Daemons.run(File.join(pwd,'newrelic_aws'))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The style in this file is (was) to use whitespace after commas.

@Boylancl
Copy link
Author

@rantler - looking better?

@rantler
Copy link

rantler commented Nov 21, 2016

🍻!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.