Skip to content

Commit db44a58

Browse files
author
Kristan Kenney
committed
Ensure that services are correctly restarted
1 parent 16cecdd commit db44a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-restart-service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ elif [ -z "$force" -o "$force" = "no" ] && [ \
4848
"$service" = "proftpd" -o \
4949
"$service" = "ssh" -o \
5050
"$service" = "fail2ban" ]; then
51-
systemctl reload $service > /dev/null 2>&1
51+
systemctl reload-or-restart $service > /dev/null 2>&1
5252
else
5353
systemctl restart $service > /dev/null 2>&1
5454
fi

0 commit comments

Comments
 (0)