fix defect4414: if there is rsync service already run, sysclone rsync server start unsuccessfully.

This commit is contained in:
huweihua 2014-11-19 06:09:23 -05:00
parent 458d82a3b2
commit c5e82bb0fd
2 changed files with 10 additions and 0 deletions

View File

@ -2080,6 +2080,11 @@ sub mksysclone
if($retcode!=0){
my $rc = xCAT::Utils->startservice("systemimager-server-rsyncd");
if ($rc != 0) {
$callback->(
{error => ["systemimager-server-rsyncd start unsuccessfully. please check if there is rsync service already run in your s
erver, if so, stop it first and try again"],
errorcode => [1]}
);
return 1;
}
}

View File

@ -1587,6 +1587,11 @@ sub mksysclone
if($retcode !=0){
my $rc = xCAT::Utils->startservice("systemimager-server-rsyncd");
if ($rc != 0) {
$callback->(
{error => ["systemimager-server-rsyncd start unsuccessfully. please check if there is rsync service already run in your s
erver, if so, stop it first and try again"],
errorcode => [1]}
);
return 1;
}
}