-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
if [ -n "${NR_INSTALL_INITSCRIPT}" ]; then | ||
osdifile="${NR_INSTALL_INITSCRIPT}" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
superseded by #913 |
Systemd is an alternative solution to the init scripts in init.d.