From def2071463495aa636033a005ad51e4bb064f553 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 3 Dec 2020 00:00:43 +0900 Subject: [PATCH] [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] b1486301f2c36838774fc5554637d93de9ab78e6 Closes-Bug: #1906489 Change-Id: I70cd4bc3d7bff766e95026c6ea8c60c98c6d13c7 --- docker/services/logrotate-crond.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/services/logrotate-crond.yaml b/docker/services/logrotate-crond.yaml index 80046db41a..be68ef2832 100644 --- a/docker/services/logrotate-crond.yaml +++ b/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" \