diff options
author | Rob Austein <sra@hactrn.net> | 2009-08-29 17:16:59 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-08-29 17:16:59 +0000 |
commit | 51300c0d351ebc2bf484ead6e2b8f60c7937ba1c (patch) | |
tree | 65585a4d415a50b91888fcb9c3ba56796dbd42d2 | |
parent | ffe15800d1e950ef3cf0607194458ff9ce15eb95 (diff) |
rsyncd logging
svn path=/myrpki/yamltest.py; revision=2720
-rw-r--r-- | myrpki/yamltest.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/myrpki/yamltest.py b/myrpki/yamltest.py index 54e0c07b..2454e2cd 100644 --- a/myrpki/yamltest.py +++ b/myrpki/yamltest.py @@ -454,6 +454,7 @@ class allocation(object): "port = %d" % self.rsync_port, "address = localhost", "[%s]" % self.name, + "log file = rsyncd.log", "read only = yes", "use chroot = no", "path = %s" % self.path("publication"), @@ -519,9 +520,7 @@ class allocation(object): Run rsyncd. """ p = subprocess.Popen(("rsync", "--daemon", "--no-detach", "--config", "rsyncd.conf"), - cwd = self.path(), - stdout = open(self.path("rsyncd.log"), "w"), - stderr = subprocess.STDOUT) + cwd = self.path()) print "Running rsyncd for %s: pid %d process %r" % (self.name, p.pid, p) return p |