From: Frank Brehm Date: Mon, 13 Nov 2017 14:38:10 +0000 (+0100) Subject: Completing logrotate for mcollective X-Git-Tag: v0.1.0~2064^2~3 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=337da9c8a6a69ef1f62ebc71d486c23ae8181a24;p=pixelpark%2Fhiera.git Completing logrotate for mcollective --- 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