You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
477 B

  1. description: Log Rotation Service
  2. type: run-once
  3. data-resources:
  4. - /var/lib/logrotate
  5. host-resources:
  6. - /var/run/docker.sock ## used by docker-send-signal for reloading containers
  7. provides:
  8. log-rotate:
  9. tech-dep: "reversed"
  10. uses:
  11. schedule-command:
  12. constraint: required
  13. auto: summon
  14. solves:
  15. missing-feature: "scheduling of log rotation"
  16. default-options:
  17. schedule: "0 0 * * *" ## It should really stay at midnight as most logs are dated