|
@@ -72,7 +72,9 @@ for service in $service_list; do
|
|
|
# Check the result of the service restart and report whether it failed.
|
|
# Check the result of the service restart and report whether it failed.
|
|
|
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."
|
|
|
- $BIN/v-log-action "system" "Error" "System" "Service failed to start (Name: $MAIL_SYSTEM)."
|
|
|
|
|
|
|
+ $BIN/v-log-action "system" "Error" "System" "Service failed to restart (Name: $service)."
|
|
|
|
|
+ else
|
|
|
|
|
+ $BIN/v-log-action "system" "Info" "System" "Service restarted (Name: $service)."
|
|
|
fi
|
|
fi
|
|
|
done
|
|
done
|
|
|
|
|
|
|
@@ -82,7 +84,6 @@ done
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
|
|
# Logging
|
|
# Logging
|
|
|
-$BIN/v-log-action "system" "Warning" "System" "Service restarted (Name: $service)."
|
|
|
|
|
log_event "$OK" "$ARGUMENTS"
|
|
log_event "$OK" "$ARGUMENTS"
|
|
|
|
|
|
|
|
exit
|
|
exit
|