From aba63605cfa8e5b64a680c55c3c32a3218b3d4db Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 3 Feb 2014 16:13:55 +0800 Subject: [PATCH] Restart daemons after logrotate Rewritten-From: e7d16b8dc4607ebfdc9c18be8f5c063efa32448a --- xenial/debian/heat-api-cfn.logrotate | 8 ++++++++ xenial/debian/heat-api-cloudwatch.logrotate | 8 ++++++++ xenial/debian/heat-api.logrotate | 8 ++++++++ xenial/debian/heat-engine.logrotate | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/xenial/debian/heat-api-cfn.logrotate b/xenial/debian/heat-api-cfn.logrotate index a533079f..9e797577 100644 --- a/xenial/debian/heat-api-cfn.logrotate +++ b/xenial/debian/heat-api-cfn.logrotate @@ -1,4 +1,12 @@ /var/log/heat/api-cfn.log { daily missingok + compress + postrotate + if dpkg-vendor --derives-from ubuntu ; then + service heat-api-cfn restart >/dev/null 2>&1 || true + else + invoke-rc.d heat-api-cfn restart >/dev/null 2>&1 || true + fi + endscript } diff --git a/xenial/debian/heat-api-cloudwatch.logrotate b/xenial/debian/heat-api-cloudwatch.logrotate index b89b06b6..98f85891 100644 --- a/xenial/debian/heat-api-cloudwatch.logrotate +++ b/xenial/debian/heat-api-cloudwatch.logrotate @@ -1,4 +1,12 @@ /var/log/heat/api-cloudwatch.log { daily missingok + compress + postrotate + if dpkg-vendor --derives-from ubuntu ; then + service heat-api-cloudwatch restart >/dev/null 2>&1 || true + else + invoke-rc.d heat-api-cloudwatch restart >/dev/null 2>&1 || true + fi + endscript } diff --git a/xenial/debian/heat-api.logrotate b/xenial/debian/heat-api.logrotate index 2a03cdbb..60a661e3 100644 --- a/xenial/debian/heat-api.logrotate +++ b/xenial/debian/heat-api.logrotate @@ -1,4 +1,12 @@ /var/log/heat/api.log { daily missingok + compress + postrotate + if dpkg-vendor --derives-from ubuntu ; then + service heat-api restart >/dev/null 2>&1 || true + else + invoke-rc.d heat-api restart >/dev/null 2>&1 || true + fi + endscript } diff --git a/xenial/debian/heat-engine.logrotate b/xenial/debian/heat-engine.logrotate index eebdeeea..ee0c32c0 100644 --- a/xenial/debian/heat-engine.logrotate +++ b/xenial/debian/heat-engine.logrotate @@ -1,4 +1,12 @@ /var/log/heat/engine.log { daily missingok + compress + postrotate + if dpkg-vendor --derives-from ubuntu ; then + service heat-engine restart >/dev/null 2>&1 || true + else + invoke-rc.d heat-engine restart >/dev/null 2>&1 || true + fi + endscript } -- 2.45.2