Browse Source

Add MariaDB to reloadable service exclusions

Kristan Kenney 6 years ago
parent
commit
a942bae827
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-restart-service

+ 1 - 1
bin/v-restart-service

@@ -28,7 +28,7 @@ check_args '1' "$#" 'SERVICE'
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-if [ "$service" != "iptables" ] || [ "$service" !="cron" ]; then
+if [ "$service" != "iptables" ] || [ "$service" !="cron" ] || [ "$service" !="mysql" ]; then
     systemctl reload $service > /dev/null 2>&1
     systemctl reload $service > /dev/null 2>&1
     if [ $? -ne 0 ]; then
     if [ $? -ne 0 ]; then
         check_result $E_RESTART "ERROR: Restart of $service failed."
         check_result $E_RESTART "ERROR: Restart of $service failed."