From: Adam Dickmeiss Date: Tue, 3 Jul 2007 19:47:11 +0000 (+0000) Subject: Added logrotate file. X-Git-Tag: PAZPAR2.1.0.1~2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=85ecf4ba2f9b484cd63da28dd444625b28358a90;p=pazpar2-moved-to-github.git Added logrotate file. --- 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