From de65f6f8b5efaa9ee96a2a786ba1c3b6d14bee00 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 3 Nov 2008 16:52:30 +0000 Subject: [PATCH] move touch of /etc/xCATMN to top of routine so the file exists before syslog is run git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index ad472e7f3..7d06c740d 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -67,6 +67,17 @@ else } chomp $::arch; chomp $::root; +# Make this system a management node +my $cmd = "/bin/touch /etc/xCATMN"; +my $outref = xCAT::Utils->runcmd("$cmd", 0); +if ($::RUNCMD_RC != 0) +{ + xCAT::MsgUtils->message('E', "Could not create /etc/xCATMN file.\n"); +} +else +{ + xCAT::MsgUtils->message('I', "Created /etc/xCATMN file.\n"); +} # some Linux-only config # (used to FTP postscripts to nodes) @@ -932,17 +943,6 @@ else } -# Make this system a management node -my $cmd = "/bin/touch /etc/xCATMN"; -my $outref = xCAT::Utils->runcmd("$cmd", 0); -if ($::RUNCMD_RC != 0) -{ - xCAT::MsgUtils->message('E', "Could not create /etc/xCATMN file.\n"); -} -else -{ - xCAT::MsgUtils->message('I', "Created /etc/xCATMN file.\n"); -} # # if there are xcatd processes then stop them