# {{ ansible_managed }} # # Project Zomboid's own log files. These are separate from the container's # stdout, which podman rotates itself via the k8s-file driver's max_size. # # copytruncate is mandatory here: the server holds these fds open for the whole # life of the process, so a rename would leave it writing into an unlinked # inode and the file would appear to simply stop growing. # # The Discord bot tails server-console.txt from a byte offset and resets that # offset when the file shrinks, so a truncate under it is safe. {{ zomboid_path }}/data/server-console.txt {{ zomboid_path }}/data/Logs/*.txt { copytruncate daily size 100M rotate 3 compress delaycompress missingok notifempty }