From 85ecf4ba2f9b484cd63da28dd444625b28358a90 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 3 Jul 2007 19:47:11 +0000 Subject: [PATCH] Added logrotate file. --- debian/changelog | 6 ++++++ debian/pazpar2.logrotate | 13 +++++++++++++ debian/rules | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 debian/pazpar2.logrotate diff --git a/debian/changelog b/debian/changelog index 612b27f..ec0939c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pazpar2 (1.0.0-4) unstable; urgency=low + + * Added logrotate file. + + -- Adam Dickmeiss Tue, 03 Jul 2007 21:33:27 +0200 + pazpar2 (1.0.0-3) unstable; urgency=low * Copy settings/*.xml to /etc/pazpar2/settings - including defaults.xml. diff --git a/debian/pazpar2.logrotate b/debian/pazpar2.logrotate new file mode 100644 index 0000000..5a8ecb4 --- /dev/null +++ b/debian/pazpar2.logrotate @@ -0,0 +1,13 @@ +/var/log/pazpar2.log { + weekly + missingok + rotate 4 + compress + delaycompress + notifempty + postrotate + if [ -f /var/run/pazpar2.pid ]; then + /etc/init.d/pazpar2 force-reload > /dev/null + fi + endscript +} diff --git a/debian/rules b/debian/rules index 9f35244..fc53d59 100755 --- a/debian/rules +++ b/debian/rules @@ -95,7 +95,7 @@ binary-arch: build install # dh_install # dh_installmenu # dh_installdebconf -# dh_installlogrotate + dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime -- 1.7.10.4