Skip to content

Commit

Permalink
Prepare for newrelic 3.0.
Browse files Browse the repository at this point in the history
NR related scripts and daemon will only run if env var
NEW_RELIC_LICENSE_KEY is defined and that the 3.0 package specific
NEWRELIC_VERSION file exists in /app/local.
  • Loading branch information
iphoting committed Feb 21, 2013
1 parent 741195c commit 9cda572
Show file tree
Hide file tree
Showing 3 changed files with 391 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ if [ -d /app/conf/nginx.d ]; then
fi
# Set NEWRELIC key
if [ -x "/app/local/bin/newrelic-license" ]; then
if [ "\${NEW_RELIC_LICENSE_KEY}" -a -x "/app/local/bin/newrelic-license" ]; then
/app/local/bin/newrelic-license
fi
Expand All @@ -279,7 +279,7 @@ touch /app/vendor/nginx/logs/access.log /app/vendor/nginx/logs/error.log /app/ve
mkdir -p client_body_temp fastcgi_temp proxy_temp scgi_temp uwsgi_temp
(tail -f -n 0 /app/vendor/nginx/logs/*.log /app/vendor/php/var/log/*.log /app/local/var/log/newrelic/*.log &)
if [ "\${NEW_RELIC_LICENSE_KEY}" ]; then
if [ "\${NEW_RELIC_LICENSE_KEY}" -a ! -f /app/local/NEWRELIC_VERSION ]; then
/app/local/bin/newrelic-daemon -c /app/local/etc/newrelic.cfg -d error
fi
/app/vendor/php/sbin/php-fpm
Expand Down
Loading

0 comments on commit 9cda572

Please sign in to comment.