Skip to content

Commit 68ce7d8

Browse files
committed
Fix bind restart fail when rebuilding dns domains
Process name is not always the same as the service name, bind9/named php7.3-fpm vs php-fpm
1 parent db44a58 commit 68ce7d8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

bin/v-restart-service

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,11 @@ PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
2323
#----------------------------------------------------------#
2424

2525
check_args '1' "$#" 'SERVICE'
26-
service_status=$(pgrep $service)
2726

2827
#----------------------------------------------------------#
2928
# Action #
3029
#----------------------------------------------------------#
3130

32-
if [ -z "$service_status" ]; then
33-
force="yes"
34-
fi
35-
3631
if [ "$service" = "iptables" ]; then
3732
# Run the restart rules for iptables firewall
3833
$BIN/v-stop-firewall

0 commit comments

Comments
 (0)