From 337da9c8a6a69ef1f62ebc71d486c23ae8181a24 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 13 Nov 2017 15:38:10 +0100 Subject: [PATCH] Completing logrotate for mcollective --- common.yaml | 3 +++ os/RedHat-7.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/common.yaml b/common.yaml index 50023627..15f55667 100644 --- a/common.yaml +++ b/common.yaml @@ -67,6 +67,9 @@ infra::profile::logrotate::rules: ifempty: false delaycompress: true minsize: '4M' + sharedscripts: true + postrotate: | + /etc/init.d/mcollective restart >/dev/null 2>&1 || true ##################################################### # Account definitions diff --git a/os/RedHat-7.yaml b/os/RedHat-7.yaml index 2464f2e2..312d795a 100644 --- a/os/RedHat-7.yaml +++ b/os/RedHat-7.yaml @@ -11,5 +11,8 @@ infra::profile::logrotate::rules: dateformat: '-%Y-%m-%d' btmp: dateformat: '-%Y-%m-%d' + mcollective: + postrotate: | + systemctl restart mcollective >/dev/null 2>&1 || true # vim: et list -- 2.39.5