From 7ae240ad2f37f4ee0ab2e37b28d890c91a7f4fc8 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 19 Aug 2010 13:59:06 +0000 Subject: [PATCH] move stopxcatd after backup git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/pgsqlsetup | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/sbin/pgsqlsetup b/xCAT-server/sbin/pgsqlsetup index a21a277fc..68014e2f5 100755 --- a/xCAT-server/sbin/pgsqlsetup +++ b/xCAT-server/sbin/pgsqlsetup @@ -190,8 +190,6 @@ if (($odbconly == 0) && ($::xcatrunningpgsql == 0)) if (($::INIT) && ($::xcatrunningpgsql == 0)) { - # shutdown the xcatd daemon while migrating - &shutdownxcatd; # # Backup current database @@ -209,6 +207,9 @@ if (($::INIT) && ($::xcatrunningpgsql == 0)) &backupxcatdb; + # shutdown the xcatd daemon while migrating + &shutdownxcatd; + # # Get MN name from site.master in backed up database # if that does not exist use resolved hostname @@ -415,7 +416,7 @@ sub backupxcatdb } # back it up - my $cmd = "XCATBYPASS=1 dumpxCATdb -p $::backupdir"; + my $cmd = " dumpxCATdb -p $::backupdir"; xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) {