From d2094cc33dd87229f453176918e4ae2c2536f88e Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 30 Aug 2001 07:14:57 +0000 Subject: [PATCH] Split out generic functions for starting rsyncd. --- testsuite/rsync.fns | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 996f9218..40c96590 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -100,3 +100,47 @@ checkforlogs() { fi } + +function build_rsyncd_conf { + # Build an appropriate configuration file + conf="$scratchdir/test-rsyncd.conf" + echo "building configuration $conf" + + port=2612 + pidfile="$scratchdir/rsyncd.pid" + logfile="$scratchdir/rsyncd.log" + + cat >$conf <