summaryrefslogtreecommitdiffstats
path: root/packaging/installer/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/installer/functions.sh')
-rw-r--r--packaging/installer/functions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh
index 6264c1131..bd9ca39b5 100644
--- a/packaging/installer/functions.sh
+++ b/packaging/installer/functions.sh
@@ -184,9 +184,9 @@ netdata_banner() {
# -----------------------------------------------------------------------------
# portable service command
-service_cmd="$(command -v service 2> /dev/null)"
-rcservice_cmd="$(command -v rc-service 2> /dev/null)"
-systemctl_cmd="$(command -v systemctl 2> /dev/null)"
+service_cmd="$(command -v service 2> /dev/null || true)"
+rcservice_cmd="$(command -v rc-service 2> /dev/null || true)"
+systemctl_cmd="$(command -v systemctl 2> /dev/null || true)"
service() {
local cmd="${1}" action="${2}"