From 011e9b6a2f2691f35501748196c0befb43d2b99a Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Thu, 4 Feb 2021 06:48:28 -0500 Subject: [PATCH] Fix logrotate for docker-distribution This used a syntax that was from an old EL and does not work with newer Fedora with systemctl. Hat tip to misc for helping me figure out which rpm had the file in it and then what the right syntax was. --- roles/docker-distribution/files/syslog-logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/docker-distribution/files/syslog-logrotate b/roles/docker-distribution/files/syslog-logrotate index 7028290a18..da15018954 100644 --- a/roles/docker-distribution/files/syslog-logrotate +++ b/roles/docker-distribution/files/syslog-logrotate @@ -6,7 +6,7 @@ { sharedscripts postrotate - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true + /usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true endscript daily rotate 7