summaryrefslogtreecommitdiff
path: root/debian/nova-baremetal.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'debian/nova-baremetal.logrotate')
-rw-r--r--debian/nova-baremetal.logrotate14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/nova-baremetal.logrotate b/debian/nova-baremetal.logrotate
new file mode 100644
index 0000000..40585eb
--- /dev/null
+++ b/debian/nova-baremetal.logrotate
@@ -0,0 +1,14 @@
+/var/log/nova/nova-baremetal.log {
+ daily
+ missingok
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ if dpkg-vendor --derives-from ubuntu ; then
+ service nova-baremetal restart >/dev/null 2>&1 || true
+ else
+ invoke-rc.d nova-baremetal restart >/dev/null 2>&1 || true
+ fi
+ endscript
+}