We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a942bae commit 538a1bcCopy full SHA for 538a1bc
bin/v-restart-service
@@ -43,6 +43,10 @@ elif [ "$service" = "iptables" ]; then
43
fi
44
else
45
systemctl restart $service > /dev/null 2>&1
46
+ if [ $? -ne 0 ]; then
47
+ check_result $E_RESTART "ERROR: Restart of $service failed."
48
+ log_history "Restart of $service failed."
49
+ fi
50
51
52
#----------------------------------------------------------#
0 commit comments