We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68046f3 commit 6eb2244Copy full SHA for 6eb2244
agent/newrelic-install.sh
@@ -852,13 +852,13 @@ disp_get_php_list() {
852
853
set_osdifile() {
854
osdifile=
855
- if [ -n "${NR_INSTALL_INITFILE}" ]; then
856
- osdifile="${NR_INSTALL_INITFILE}"
+ if [ -n "${NR_INSTALL_INITSCRIPT}" ]; then
+ osdifile="${NR_INSTALL_INITSCRIPT}"
857
fi
858
if [ "${ostype}" = "darwin" ]; then
859
: ${osdifile:=/usr/bin/newrelic-daemon-service}
860
- elif [ "${ostype}" = "freebsd" -o -f /etc/arch-release ]; then
861
- # It is possible that this is only for freebsd.
+ elif [ -f /etc/arch-release -o ! -d /etc/init.d ]; then
+ # Systems that use systemd instread of init scripts
862
: ${osdifile:=/etc/rc.d/newrelic-daemon}
863
else
864
: ${osdifile:=/etc/init.d/newrelic-daemon}
0 commit comments