mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
service_cmd() - add BSD service detection
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/238
This commit is contained in:
parent
d3d151fb78
commit
0b16e13001
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue