@cryptotaxi247 / netdata-1 / commits / 45d5faa45

fix retrieving service commands without failure (#11947)

Co-authored-by: Marius Manea <marius@netdata.com>

maneamarius committed Jan 10, 2022 at 18:42 UTC 45d5faa453bb47a22e49358e95a183efe3eee235
1 file changed +3 -3
packaging/installer/functions.sh
+3 -3
@@ -184,9 +184,9 @@ netdata_banner() {
184 # -----------------------------------------------------------------------------
185 # portable service command
186
187 -service_cmd="$(command -v service 2> /dev/null)"
188 -rcservice_cmd="$(command -v rc-service 2> /dev/null)"
189 -systemctl_cmd="$(command -v systemctl 2> /dev/null)"
187 +service_cmd="$(command -v service 2> /dev/null || true)"
188 +rcservice_cmd="$(command -v rc-service 2> /dev/null || true)"
189 +systemctl_cmd="$(command -v systemctl 2> /dev/null || true)"
190 service() {
191
192 local cmd="${1}" action="${2}"