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
This commit is contained in:
lissav 2008-11-03 16:52:30 +00:00
parent e04eecc85e
commit de65f6f8b5

View File

@ -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