18 lines
477 B

description: Log Rotation Service
type: run-once
data-resources:
- /var/lib/logrotate
host-resources:
- /var/run/docker.sock ## used by docker-send-signal for reloading containers
provides:
log-rotate:
tech-dep: "reversed"
uses:
schedule-command:
constraint: required
auto: summon
solves:
missing-feature: "scheduling of log rotation"
default-options:
schedule: "0 0 * * *" ## It should really stay at midnight as most logs are dated