Code

Added logrotate for server and client
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Mar 2008 14:25:13 +0000 (14:25 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Mar 2008 14:25:13 +0000 (14:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9865 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/debian/gosa-si-client.logrotate [new file with mode: 0644]
gosa-si/debian/gosa-si-server.logrotate [new file with mode: 0644]
gosa-si/debian/rules

diff --git a/gosa-si/debian/gosa-si-client.logrotate b/gosa-si/debian/gosa-si-client.logrotate
new file mode 100644 (file)
index 0000000..7e9fd81
--- /dev/null
@@ -0,0 +1,10 @@
+/var/log/gosa-si-client.log {
+    weekly
+    rotate 4
+    compress
+    missingok
+    postrotate
+        pkill -SIGUSR1 gosa-si-client > /dev/null || true
+    endscript
+}
+
diff --git a/gosa-si/debian/gosa-si-server.logrotate b/gosa-si/debian/gosa-si-server.logrotate
new file mode 100644 (file)
index 0000000..c10f95e
--- /dev/null
@@ -0,0 +1,10 @@
+/var/log/gosa-si-server.log {
+    weekly
+    rotate 4
+    compress
+    missingok
+    postrotate
+        pkill -SIGUSR1 gosa-si-server > /dev/null || true
+    endscript
+}
+
index 607349c899178e71f1ef9eed7d02cb35a48207e2..2354826aff7d81ad00bee58837e6937de30965ed 100755 (executable)
@@ -59,6 +59,7 @@ binary-indep: install
        dh_installcron
        dh_installexamples
        dh_installchangelogs
+       dh_installlogrotate
        #dh_installdebconf
        dh_installinit --init-script=gosa-si -- start 00 2 3 4 5 . stop 29 1 .