Description
Description
Running the Infrastructure Agent on RHEL9 hosts is showing a couple of warnings in the journalctl, specifically for MemoryLimit and PIDFile.
-
MemoryLimit parameter in newrelic-infra.service has been deprecated in RHEL9 and will be completely removed in RHEL10. The fix is to change the service file to use MemoryMax.
-
The default PIDFile location for services on RHEL9 has been moved from /var/run to /run. The recommendation is to change the PIDFile parameter in the newrelic-infra.services file from 'PIDFile=/var/run/newrelic-infra/newrelic-infra.pid' to 'PIDFile=/run/newrelic-infra/newrelic-infra.pid'
Expected Behavior
No errors/warnings in journalctl
Troubleshooting
changed both parameters as suggested above and received no errors.
Steps to Reproduce
The newrelic-infra.service file is installed by default as is. there is no step to reproduce this issue.
Your Environment
RHEL9
New Relic Infrastructure Agent version: 1.48.1, GoVersion: go1.20.8, GitCommit: 1242f68, BuildDate: 2023-11-02T16:44:32