]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/files/default/replication-bin/streaming-replicator
Bring streaming replication under chef control
[chef.git] / cookbooks / planet / files / default / replication-bin / streaming-replicator
diff --git a/cookbooks/planet/files/default/replication-bin/streaming-replicator b/cookbooks/planet/files/default/replication-bin/streaming-replicator
new file mode 100644 (file)
index 0000000..6af3f38
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# DO NOT EDIT - This file is being maintained by Chef
+
+export TZ=UTC
+
+exec >> /var/log/replication/streaming-replicator 2>&1
+
+exec /usr/local/bin/osmosis -q \
+  --replicate-apidb iterations=0 minInterval=10000 maxInterval=60000 authFile=/etc/replication/auth.conf \
+  --send-replication-sequence port=8081 \
+  --write-replication workingDirectory=/var/lib/replication/streaming