From d2ba7033d44bcda2c87d8ace11eb2b478356eb90 Mon Sep 17 00:00:00 2001 From: sjing Date: Wed, 13 Apr 2011 08:08:32 +0000 Subject: [PATCH] Support -n flag on AIX. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 0f8aaeddc..a81d1de16 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -349,7 +349,14 @@ sub process_request { $ctx->{dnsupdaters} = \@nservers; } if ($zapfiles) { #here, we unlink all the existing files to start fresh - system("/sbin/service $service stop"); #named may otherwise hold on to stale journal filehandles + if (xCAT::Utils->isAIX()) + { + system("/usr/bin/stopsrc -s $service"); + } + else + { + system("/sbin/service $service stop"); #named may otherwise hold on to stale journal filehandles + } my $conf = get_conf(); unlink $conf; my $DBDir = get_dbdir();