mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Don't slow down stop with 'wait'
This commit is contained in:
parent
055f92c3d2
commit
666cc35b46
@ -1287,7 +1287,15 @@ sub verify_required_interfaces( $ ) {
|
||||
my $interfaces = find_interfaces_by_option 'wait';
|
||||
|
||||
if ( @$interfaces ) {
|
||||
emit "local waittime\n";
|
||||
emit( "local waittime\n" );
|
||||
|
||||
emit( 'case "$COMMAND" in' );
|
||||
|
||||
push_indent;
|
||||
|
||||
emit( 'start|restart|restore)' );
|
||||
|
||||
push_indent;
|
||||
|
||||
for my $interface (@$interfaces ) {
|
||||
my $wait = $interfaces{$interface}{options}{wait};
|
||||
@ -1328,6 +1336,14 @@ sub verify_required_interfaces( $ ) {
|
||||
$returnvalue = 1;
|
||||
}
|
||||
}
|
||||
|
||||
emit( ";;\n" );
|
||||
|
||||
pop_indent;
|
||||
pop_indent;
|
||||
|
||||
emit( 'esac' );
|
||||
|
||||
}
|
||||
|
||||
$interfaces = find_interfaces_by_option 'required';
|
||||
|
@ -697,7 +697,7 @@ startup_error() # $* = Error Message
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ $LOG_VERBOSITY -gt 1 ]; then
|
||||
if [ $LOG_VERBOSITY -ge 0 ]; then
|
||||
timestamp="$(date +'%_b %d %T') "
|
||||
|
||||
case $COMMAND in
|
||||
|
Loading…
Reference in New Issue
Block a user