Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newrelic.ini files prefer newrelic.daemon.address to newrelic.daemon.port #8

Open
paulie51 opened this issue Mar 16, 2020 · 0 comments

Comments

@paulie51
Copy link

As per : https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-daemon-port

New deploys of newrelic.ini do not contain the line :

;newrelic.daemon.port = /tmp/.newrelic.sock

Instead they contain :

;newrelic.daemon.address = /tmp/.newrelic.sock

This means that the sed in writeIniFile function in apm.sh (to modify the location of the socket for systemd PrivateTmp issues) no longer works as it doesn't modify anything.

The safest fix here is probably to add an additional line to address the new naming convention (in case the old one appears anywhere) :

sed -i -e "s/;newrelic.daemon.address = \"\/tmp\/.newrelic.sock\"/newrelic.daemon.address = \"\/run\/@.newrelic.sock\"/g" $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant