diff options
author | Florent Villard <warly@mandriva.com> | 2003-11-05 16:57:20 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-11-05 16:57:20 +0000 |
commit | 79843e9711f1e21823df989c9200031514e8e0fc (patch) | |
tree | 5e5efa466486b82db0b63b072e517a5e0d82f749 /dns_wizard/Bind.pm | |
parent | 77f1ad96d339974fe8da213ed6ab7e6956e7409c (diff) | |
download | drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.gz drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.bz2 drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.xz drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.zip |
fix ftp anonymous mode
fix ntp wizard
fix bind config
Diffstat (limited to 'dns_wizard/Bind.pm')
-rw-r--r-- | dns_wizard/Bind.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm index 26d745fb..d931aa73 100644 --- a/dns_wizard/Bind.pm +++ b/dns_wizard/Bind.pm @@ -25,6 +25,7 @@ use lib qw(/usr/lib/libDrakX); use strict; use common; +use services; use MDK::Wizard::Wizcommon; my $wiz = new MDK::Wizard::Wizcommon; @@ -190,8 +191,12 @@ nb: $ds"); print NEW "domain $wiz_domain_name\n"; print NEW "nameserver $wiz_ip_server\n"; standalone::explanations("$file : domain: $wiz_domain_name nameserver: $wiz_ip_server"); - system("/sbin/chkconfig --level 235 named on"); - system("/etc/rc.d/init.d/named restart"); + services::start_service_on_boot('named'); + if (services::is_service_running('named')) { + services::restart('named') + } else { + services::start('named') + } } sub new { |