Skip to content

Commit bd3f3d2

Browse files
author
Kristan Kenney
committed
Improve error logging in v-change-service-config
1 parent 53fa697 commit bd3f3d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-change-sys-service-config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,14 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
101101
fi
102102
fi
103103

104-
service $service restart >/dev/null 2>&1
104+
$BIN/v-restart-service $service $restart >/dev/null 2>&1
105+
105106
if [ $? -ne 0 ]; then
106107
for config in $dst; do
107108
cat $config.vst.back > $config
108109
rm -f $config.vst.back
109110
done
110-
check_result $E_RESTART "$service failed to start with new config"
111+
check_result $E_RESTART "ERROR: $service failed to start with new configuration."
111112
fi
112113
fi
113114

0 commit comments

Comments
 (0)