Project

General

Profile

« Previous | Next » 

Revision 563d3c76

Added by Marcos M over 1 year ago

Remove unnecessary sleep when configuring unbound

View differences:

src/etc/inc/services.inc
4356 4356
			}
4357 4357
		}
4358 4358

  
4359
		// unbound has already been stopped at this point
4359 4360
		if (platform_booting()) {
4360 4361
			echo gettext("Starting DNS Resolver...");
4361
		} else {
4362
			sleep(1);
4363 4362
		}
4364 4363

  
4365 4364
		/* generate hosts file */
src/etc/inc/unbound.inc
657 657
					unlink_if_exists($root_key_file);
658 658
				}
659 659
			}
660
			// When there are conectivity issues, it may take ~10 seconds for the command to time out
660 661
			mwexec("/usr/bin/su -m unbound -c '/usr/local/sbin/unbound-anchor -a {$root_key_file}'", true);
661 662
			// Only sync the file if this is the real (default) one, not a test one.
662 663
			if ($param1 == "") {

Also available in: Unified diff