| | |
| | | function onInstall() { |
| | | global $conf; |
| | | |
| | | return true; |
| | | if($conf['services']['dns'] == true) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | function restartBind($action = 'restart') { |
| | | global $app; |
| | | global $app,$conf; |
| | | |
| | | $daemon = ''; |
| | | if(is_file($conf['init_scripts'] . '/' . 'bind9')) { |
| | |
| | | } |
| | | |
| | | function restartPowerDNS($action = 'restart') { |
| | | global $app; |
| | | global $app,$conf; |
| | | |
| | | $app->log("restartPDNS called.",LOGLEVEL_DEBUG); |
| | | |
| | |
| | | */ |
| | | file_put_contents('/etc/powerdns/pdns.d/pdns.ispconfig-axfr',$options."\n"); |
| | | |
| | | daemon= ''; |
| | | $daemon= ''; |
| | | if (is_file($conf['init_scripts'] . '/' . 'powerdns')) { |
| | | $daemon = 'powerdns'; |
| | | } else { |