From 260e24bfc67954205932a1440c144c2a777c3f9d Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: May 20 2014 06:25:42 +0000 Subject: Fixed the p_rsync test (systemctl for rsyncd service and no xinetd anymore) --- diff --git a/tests/p_rsync/0-install-rsync.sh b/tests/p_rsync/0-install-rsync.sh index f0efada..50637cf 100755 --- a/tests/p_rsync/0-install-rsync.sh +++ b/tests/p_rsync/0-install-rsync.sh @@ -4,8 +4,11 @@ t_Log "Running $0 - installing rsync and xinetd." t_InstallPackage xinetd rsync -# enable rsync in /etc/xinet.d/rsync -sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/rsync - # Restart in case previous tests allready installed xinetd -t_ServiceControl xinetd restart +if [ "$centos_ver" = "7" ] ; then + systemctl start rsyncd.service +else + # enable rsync in /etc/xinet.d/rsync + sed -i 's/\(disable\s*=\ \)yes/\1no/' /etc/xinetd.d/rsync + t_ServiceControl xinetd restart +fi diff --git a/tests/p_rsync/10-rsync-test.sh b/tests/p_rsync/10-rsync-test.sh index 41625d5..7756168 100755 --- a/tests/p_rsync/10-rsync-test.sh +++ b/tests/p_rsync/10-rsync-test.sh @@ -13,6 +13,7 @@ cat > $PATH2FILE/$FILE < /etc/rsyncd.conf <