From 7009498b84a0a02589d1102f9ee9b0904d7e298d Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 30 May 2013 06:04:47 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/anaconda.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 046400d05..f98d096c1 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -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 {