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
This commit is contained in:
parent
46215c129e
commit
d2ba7033d4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user