unify "reloading" the dns daemon

This commit is contained in:
Daniel Reichelt
2016-06-17 23:01:37 +02:00
parent 50317da185
commit b4f90730cc
3 changed files with 18 additions and 9 deletions

View File

@@ -47,11 +47,9 @@ class pdns extends DnsBase
$this->walkDomainList($domain, $domains);
}
$this->_logger->logAction(CRON_ACTION, LOG_INFO, 'Database updated');
// reload Bind
safe_exec(escapeshellcmd(Settings::Get('system.bindreload_command')));
$this->_logger->logAction(CRON_ACTION, LOG_INFO, 'pdns reloaded');
$this->_logger->logAction(CRON_ACTION, LOG_INFO, 'PowerDNS database updated');
$this->reloadDaemon();
$this->_logger->logAction(CRON_ACTION, LOG_INFO, 'Task4 finished');
}
private function walkDomainList($domain, $domains)