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

fix(installer): better handle systemd installations #910

Closed
wants to merge 3 commits into from
Closed

Conversation

ZNeumann
Copy link
Contributor

@ZNeumann ZNeumann commented May 31, 2024

Systemd is an alternative solution to the init scripts in init.d.

@newrelic-php-agent-bot
Copy link

newrelic-php-agent-bot commented May 31, 2024

Test Suite Status Result
Multiverse 9/9 passing
SOAK 55/56 passing

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.79%. Comparing base (68046f3) to head (b505ba9).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #910   +/-   ##
=======================================
  Coverage   78.79%   78.79%           
=======================================
  Files         193      193           
  Lines       27214    27214           
=======================================
  Hits        21443    21443           
  Misses       5771     5771           
Flag Coverage Δ
agent-for-php-7.0 77.53% <ø> (ø)
agent-for-php-7.1 77.27% <ø> (ø)
agent-for-php-7.2 78.20% <ø> (ø)
agent-for-php-7.3 78.22% <ø> (ø)
agent-for-php-7.4 77.93% <ø> (ø)
agent-for-php-8.0 77.99% <ø> (ø)
agent-for-php-8.1 77.98% <ø> (ø)
agent-for-php-8.2 77.58% <ø> (ø)
agent-for-php-8.3 77.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +855 to +856
if [ -n "${NR_INSTALL_INITSCRIPT}" ]; then
osdifile="${NR_INSTALL_INITSCRIPT}"
Copy link
Member

Choose a reason for hiding this comment

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

These changes have been incorporated in #913.

fi
if [ "${ostype}" = "darwin" ]; then
: ${osdifile:=/usr/bin/newrelic-daemon-service}
elif [ "${ostype}" = "freebsd" -o -f /etc/arch-release ]; then
# It is possible that this is only for freebsd.
elif [ -f /etc/arch-release -o -d /etc/rc.d ]; then
Copy link
Member

Choose a reason for hiding this comment

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

#913 addresses this problem in a more universal way applicable to wider group of OSs.

@ZNeumann
Copy link
Contributor Author

superseded by #913

@ZNeumann ZNeumann closed this Jun 12, 2024
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

Successfully merging this pull request may close these issues.

5 participants