mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
refactoring: log_event(), is_format_valid()
This commit is contained in:
parent
325ca65f32
commit
a61a6e979e
52 changed files with 582 additions and 1170 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue