summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2020-04-23 16:33:39 -0700
committerAlec Warner <antarus@gentoo.org>2020-04-23 16:33:39 -0700
commite91c97ff20233d2e0048e462ad25be22d2123edb (patch)
tree33f1f284c9ea45384bb2cf477925a12c2a97d30c /rsync-mirror
downloadrsync-service-e91c97ff20233d2e0048e462ad25be22d2123edb.tar.gz
rsync-service-e91c97ff20233d2e0048e462ad25be22d2123edb.tar.bz2
rsync-service-e91c97ff20233d2e0048e462ad25be22d2123edb.zip
Add a docker container for rsync.
This is cribbed off of my old work at https://gitweb.gentoo.org/dev/antarus.git/tree/src/infra.gentoo.org/rsync-node. Basically its a stage3 that serves rsync atomically. It needs some tests and some CI. Signed-off-by: Alec Warner <antarus@gentoo.org>
Diffstat (limited to 'rsync-mirror')
-rw-r--r--rsync-mirror22
1 files changed, 22 insertions, 0 deletions
diff --git a/rsync-mirror b/rsync-mirror
new file mode 100644
index 0000000..18ffadc
--- /dev/null
+++ b/rsync-mirror
@@ -0,0 +1,22 @@
+# rsync.gentoo.org service
+
+service rsync
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/bin/rsync
+ server_args = --daemon
+ log_on_success = PID HOST DURATION EXIT
+ log_on_failure = HOST ATTEMPT
+ log_type = SYSLOG local3
+ port = rsync
+ only_from = 0.0.0.0/0
+ nice = 5
+ instances = 60
+ cps = 500 1
+ max_load = 4
+ per_source = 10
+ flags = IPv4
+ disable = no
+}