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
449 B

  1. description: Log Rotation Service
  2. type: run-once
  3. data-resources:
  4. - /var/lib/logrotate
  5. ## YYY: probably not useful anymore
  6. # charm-resources:
  7. # - /etc/cron.daily/logrotate
  8. provides:
  9. log-rotate:
  10. tech-dep: "reversed"
  11. uses:
  12. schedule-command:
  13. constraint: required
  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