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