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.

18 lines
535 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: !var-expand
  17. ## It should really stay at midnight as most logs are dated
  18. (0 0 * * *) {-p 10 -D} dc run --rm "$MASTER_BASE_SERVICE_NAME"