From 0b16e1300105c486e932ec886bc3a8e25983e900 Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Wed, 2 Jan 2019 13:50:01 +0000 Subject: [PATCH] service_cmd() - add BSD service detection fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/238 --- update-ngxblocker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-ngxblocker b/update-ngxblocker index 9746c1e12..a9033f987 100755 --- a/update-ngxblocker +++ b/update-ngxblocker @@ -157,7 +157,7 @@ update_paths() { service_cmd() { # arch linux does not have a 'service' command - local x= svc= svc_list="service systemctl rc-service" + local x= svc= svc_list="service systemctl rc-service rcctl" for x in $svc_list; do svc=$(which $x 2>/dev/null) @@ -166,6 +166,7 @@ service_cmd() { service) svc="$svc nginx reload";; systemctl) svc="$svc reload nginx.service";; rc-service) svc="$svc nginx reload";; + rcctl) svc="$svc reload nginx";; esac break else