Skip to content

Commit

Permalink
Only start newrelic-daemon if $NEW_RELIC_LICENSE_KEY env is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphoting committed Dec 5, 2012
1 parent b135b57 commit ec47ee1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ 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 &)
/app/local/bin/newrelic-daemon -c /app/local/etc/newrelic.cfg -d error
if [ "\${NEW_RELIC_LICENSE_KEY}" ]; then
/app/local/bin/newrelic-daemon -c /app/local/etc/newrelic.cfg -d error
fi
/app/vendor/php/sbin/php-fpm
/app/vendor/nginx/sbin/nginx
EOF
Expand Down

0 comments on commit ec47ee1

Please sign in to comment.