File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,14 @@ if [ "$service" != "iptables" ] || [ "$service" != "cron" ] || [ "$service" != "
3636 check_result $E_RESTART " ERROR: Restart of $service failed."
3737 log_history " Restart of $service failed."
3838 fi
39- elif [ " $service " = " iptables" ]; then
40- # Restart rules for firewall
41- $BIN /v-stop-firewall
42- $BIN /v-update-firewall
43- if [ $? -ne 0 ]; then
44- check_result $E_RESTART " ERROR: Restart of $service failed."
45- log_history " Restart of $service failed."
39+ else
40+ if [ " $service " = " iptables" ]; then
41+ # Restart rules for firewall
42+ $BIN /v-stop-firewall
43+ $BIN /v-update-firewall
4644 fi
47-
48- if [ " $service " = " cron" ] || [ " $service " = " mysql" ] || [ " $service " = " hestia" ]; then
49- # Restart services not eligible for configuration reload
5045 systemctl restart $service > /dev/null 2>&1
46+
5147 if [ $? -ne 0 ]; then
5248 check_result $E_RESTART " ERROR: Restart of $service failed."
5349 log_history " Restart of $service failed."
You can’t perform that action at this time.
0 commit comments