# logrotate configuration for The Lacuna Expanse server. # # Consumed by the logrotate sidecar defined in ./docker-compose.yml, which # bind-mounts host ./log at /home/lacuna/server/log and this file at # /etc/logrotate.d/lacuna. (It can equally be installed as /etc/logrotate.d/lacuna # on a bare-metal host.) The paths below are the in-container log tree, which is # also the host ./log tree via the bind mount. # # Every producer now writes into this tree: # server/ - the plack app (Log4perl FILE appender) + plackup framework noise # scheduler/ - schedule_{building,ship_arrival,captcha}.pl (via bin/run_scheduler.sh) # cron/ - the ofelia-driven bin/run_*.sh batch scripts # deploy/ - bin/deploy.pl # caddy/ - caddy access log (rotated by caddy's own log roller, not here) # # copytruncate: plackup and the scheduler daemons hold their log handles open and # have no cross-container reopen signal; truncating in place on the shared bind # mount needs none. /home/lacuna/server/log/server/*.log /home/lacuna/server/log/scheduler/*.log /home/lacuna/server/log/cron/*.log /home/lacuna/server/log/deploy/*.log { daily rotate 14 missingok notifempty compress delaycompress copytruncate sharedscripts }