From add541835c30f0d1789bf53d8d3f2fb255cda4e5 Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Thu, 22 May 2008 18:21:01 +0000 Subject: [PATCH] run makenamed.conf with system instead of backticks git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1483 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/DNSsn.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/DNSsn.pm b/xCAT-server-2.0/lib/xcat/plugins/DNSsn.pm index c47a84371..39e65c241 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/DNSsn.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/DNSsn.pm @@ -11,13 +11,13 @@ use Getopt::Long; #------------------------------------------------------- -=head1 - xCAT plugin package to setup of DNS +=head1 + xCAT plugin package to setup of DNS #------------------------------------------------------- -=head3 handled_commands +=head3 handled_commands Check to see if on a Service Node Check database to see if this node is a DNS server @@ -64,7 +64,7 @@ sub handled_commands xCAT::MsgUtils->message("S", "Error on command: $cmd"); return 1; } - + } } } @@ -73,7 +73,7 @@ sub handled_commands #------------------------------------------------------- -=head3 process_request +=head3 process_request Process the command @@ -87,9 +87,9 @@ sub process_request #----------------------------------------------------------------------------- -=head3 setup_DNS +=head3 setup_DNS - Sets up Domain Name service + Sets up Domain Name service http://www.adminschoice.com/docs/domain_name_service.htm#Introduction =cut @@ -98,7 +98,7 @@ sub process_request sub setup_DNS { # setup the named.conf file - `/opt/xcat/sbin/makenamed.conf`; + system("/opt/xcat/sbin/makenamed.conf"); # turn DNS on $cmd = "chkconfig named on";