Browse Source

Improve error logging in v-change-service-config

Kristan Kenney 6 years ago
parent
commit
bd3f3d28d5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      bin/v-change-sys-service-config

+ 3 - 2
bin/v-change-sys-service-config

@@ -101,13 +101,14 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
         fi
     fi
 
-    service $service restart >/dev/null 2>&1
+    $BIN/v-restart-service $service $restart >/dev/null 2>&1
+
     if [ $? -ne 0 ]; then
         for config in $dst; do
             cat $config.vst.back > $config
             rm -f $config.vst.back
         done
-        check_result $E_RESTART "$service failed to start with new config"
+        check_result $E_RESTART "ERROR: $service failed to start with new configuration."
     fi
 fi