Added logrotate file.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Jul 2007 19:47:11 +0000 (19:47 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Jul 2007 19:47:11 +0000 (19:47 +0000)
debian/changelog
debian/pazpar2.logrotate [new file with mode: 0644]
debian/rules

index 612b27f..ec0939c 100644 (file)
@@ -1,3 +1,9 @@
+pazpar2 (1.0.0-4) unstable; urgency=low
+
+  * Added logrotate file.
+
+ -- Adam Dickmeiss <adam@indexdata.dk>  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 (file)
index 0000000..5a8ecb4
--- /dev/null
@@ -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
+}
index 9f35244..fc53d59 100755 (executable)
@@ -95,7 +95,7 @@ binary-arch: build install
 #      dh_install
 #      dh_installmenu
 #      dh_installdebconf       
-#      dh_installlogrotate
+       dh_installlogrotate
 #      dh_installemacsen
 #      dh_installpam
 #      dh_installmime