- cron_d "replication-minutely" do
- user "planet"
- command "/usr/local/bin/osmosis -q --replicate-apidb authFile=/etc/replication/auth.conf validateSchemaVersion=false --write-replication workingDirectory=/store/planet/replication/minute"
- mailto "brett@bretth.com"
- environment "LD_PRELOAD" => "/opt/flush/flush.so"
- end
-
- cron_d "replication-hourly" do
- minute "2,7,12,17"
- user "planet"
- command "/usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour"
- mailto "brett@bretth.com"
- environment "LD_PRELOAD" => "/opt/flush/flush.so"
+ service "replication-hourly.timer" do
+ action [:enable, :start]