Browse Source

[Queens-only] Do not remove symlinks by containers-tmpwatch

This change prevents the containers-tmpwatch cron job from deleting
symlinks, so that /var/log/containers/swift, which is a symlink to
/var/log/swift, is preserved.

This patch is submitted to queens directly because we no longer have
the symlink for /var/log/container/swift since the following patch[1]
was merged.

[1] b1486301f2

Closes-Bug: #1906489
Change-Id: I70cd4bc3d7bff766e95026c6ea8c60c98c6d13c7
changes/51/765151/2
Takashi Kajinami 8 months ago
parent
commit
def2071463
  1. 2
      docker/services/logrotate-crond.yaml

2
docker/services/logrotate-crond.yaml

@ -113,7 +113,7 @@ outputs:
mode: 0755
content: |
#!/bin/sh
tmpwatch --nodirs \
tmpwatch --nodirs --nosymlinks \
-X "/var/log/containers/*/*log" \
-X "/var/log/containers/*/*/*log" \
-X "/var/log/containers/*/*err" \

Loading…
Cancel
Save