Add a check for rsync service to make sure it's running.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16468 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-05-30 06:04:47 +00:00
parent e78c04591c
commit 7009498b84

View File

@ -1860,6 +1860,15 @@ sub mksysclone
}
}
# check systemimager-server-rsyncd to make sure it's running.
my $out = xCAT::Utils->runcmd("service systemimager-server-rsyncd status", -1);
if ($::RUNCMD_RC != 0) { # not running
my $rc = xCAT::Utils->startService("systemimager-server-rsyncd");
if ($rc != 0) {
return 1;
}
}
}
sub copycd
{