subscribes :restart, "systemd_service[replicate]"
end
-template "/etc/logrotate.d/replicate" do
- source "replicate.logrotate.erb"
- owner "root"
- group "root"
- mode "644"
+# FIXME: cleanup old replicate logrotate
+file "/etc/logrotate.d/replicate" do
+ action :delete
end
template "/usr/local/bin/render-lowzoom" do
[ -f sequence-prev.txt ] && mv sequence-prev.txt sequence.txt
}
-# Send output to the log
-exec > /var/log/tile/replicate.log 2>&1
-
# Change to the replication state directory
cd /var/lib/replicate