[Groonga-commit] groonga/groonga [master] debian: split logrotate script

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Sep 24 10:09:59 JST 2012


Kouhei Sutou	2012-09-24 10:09:59 +0900 (Mon, 24 Sep 2012)

  New Revision: aebecb940d30fa066c0781f9992edbfa20d17a2f
  https://github.com/groonga/groonga/commit/aebecb940d30fa066c0781f9992edbfa20d17a2f

  Log:
    debian: split logrotate script
    
    We can't use common script for both groonga-server-http and
    groonga-server-gqtp.

  Added files:
    packages/debian/groonga-server-gqtp.logrotate
    packages/debian/groonga-server-http.logrotate
  Removed files:
    packages/debian/groonga-server-common.logrotate

  Deleted: packages/debian/groonga-server-common.logrotate (+0 -21) 100644
===================================================================
--- packages/debian/groonga-server-common.logrotate    2012-09-24 10:04:09 +0900 (4a2fd7f)
+++ /dev/null
@@ -1,21 +0,0 @@
-/var/log/groonga/*.log {
-    daily
-    missingok
-    rotate 30
-    compress
-    delaycompress
-    notifempty
-    create 640 groonga groonga
-    sharedscripts
-    postrotate
-        . /etc/default/groonga-server
-        if x"$ENABLE" = x"yes"; then
-            if x"$PROTOCOL" = x"http"; then
-                /usr/bin/curl --silent --output /dev/null \
-                    "http://127.0.0.1:10041/d/log_reopen"
-            else
-                /usr/bin/groonga -c 127.0.0.1 log_reopen > /dev/null
-            fi
-        fi
-    endscript
-}

  Added: packages/debian/groonga-server-gqtp.logrotate (+17 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/groonga-server-gqtp.logrotate    2012-09-24 10:09:59 +0900 (ba0c32c)
@@ -0,0 +1,17 @@
+/var/log/groonga/*-gqtp.log {
+    daily
+    missingok
+    rotate 30
+    compress
+    delaycompress
+    notifempty
+    create 640 groonga groonga
+    sharedscripts
+    postrotate
+        . /etc/default/groonga-server-gqtp
+        if x"$ENABLE" = x"yes"; then
+            /usr/bin/groonga --port "${PORT:-10043}" -c 127.0.0.1 \
+                log_reopen > /dev/null
+        fi
+    endscript
+}

  Added: packages/debian/groonga-server-http.logrotate (+17 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/groonga-server-http.logrotate    2012-09-24 10:09:59 +0900 (8138715)
@@ -0,0 +1,17 @@
+/var/log/groonga/*-http.log {
+    daily
+    missingok
+    rotate 30
+    compress
+    delaycompress
+    notifempty
+    create 640 groonga groonga
+    sharedscripts
+    postrotate
+        . /etc/default/groonga-server-http
+        if x"$ENABLE" = x"yes"; then
+            /usr/bin/curl --silent --output /dev/null \
+                "http://127.0.0.1:${PORT:-10041}/d/log_reopen"
+        fi
+    endscript
+}
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index