File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,24 @@ check_args '1' "$#" 'SERVICE'
2828# Action #
2929# ----------------------------------------------------------#
3030
31- if [ " $service " != " iptables" ] || [ " $service " != " cron" ] || [ " $service " != " mysql" ]; then
31+ if [ " $service " != " iptables" ] || [ " $service " != " cron" ] || [ " $service " != " mysql" ] || [ " $service " != " hestia" ]; then
32+ # Perform a configuration reload so that process is not terminated
33+ # resulting in less server downtime.
3234 systemctl reload $service > /dev/null 2>&1
3335 if [ $? -ne 0 ]; then
3436 check_result $E_RESTART " ERROR: Restart of $service failed."
3537 log_history " Restart of $service failed."
3638 fi
3739elif [ " $service " = " iptables" ]; then
40+ # Restart rules for firewall
3841 $BIN /v-stop-firewall
3942 $BIN /v-update-firewall
4043 if [ $? -ne 0 ]; then
4144 check_result $E_RESTART " ERROR: Restart of $service failed."
4245 log_history " Restart of $service failed."
4346 fi
44- else
47+ elif [ " $service " = " cron" ] || [ " $service " = " mysql" ] || [ " $service " = " hestia" ]; then
48+ # Restart services not eligible for configuration reload
4549 systemctl restart $service > /dev/null 2>&1
4650 if [ $? -ne 0 ]; then
4751 check_result $E_RESTART " ERROR: Restart of $service failed."
You can’t perform that action at this time.
0 commit comments