From: Thomas Goirand Date: Mon, 3 Feb 2014 08:13:55 +0000 (+0800) Subject: Restart daemons after logrotate X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=aba63605cfa8e5b64a680c55c3c32a3218b3d4db;p=openstack-build%2Fheat-build.git Restart daemons after logrotate Rewritten-From: e7d16b8dc4607ebfdc9c18be8f5c063efa32448a --- 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 }