refactoring: log_event(), is_format_valid()

This commit is contained in:
Serghey Rodin 2016-06-24 16:31:43 +03:00
commit a61a6e979e
52 changed files with 582 additions and 1170 deletions

View file

@ -30,13 +30,13 @@ check_args '1' "$#" 'SERVICE'
if [ "$service" != "iptables" ]; then
service $service restart >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit $E_RESTART
check_result $E_RESTART "$service restart failed"
fi
else
$BIN/v-stop-firewall
$BIN/v-update-firewall
if [ $? -ne 0 ]; then
exit $E_RESTART
check_result $E_RESTART "$service restart failed"
fi
fi