[Groonga-commit] groonga/groonga [master] debian: fix a bug that log_reopen command in logrotate uses wrong protocol

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 9日 (水) 15:42:16 JST


Kouhei Sutou	2012-05-09 15:42:16 +0900 (Wed, 09 May 2012)

  New Revision: 2ac0475fe4924e84e443251a3755607e3c8c60e2

  Log:
    debian: fix a bug that log_reopen command in logrotate uses wrong protocol

  Modified files:
    packages/debian/changelog
    packages/debian/groonga-server.logrotate

  Modified: packages/debian/changelog (+1 -0)
===================================================================
--- packages/debian/changelog    2012-05-09 15:40:50 +0900 (16f88b7)
+++ packages/debian/changelog    2012-05-09 15:42:16 +0900 (2a7d9d9)
@@ -1,6 +1,7 @@
 groonga (2.0.3-1) unstable; urgency=low
 
   * New upstream release.
+  * Fix a bug that log_reopen command in logrotate uses wrong protocol.
 
  -- Kouhei Sutou <kou****@clear*****>  Tue, 29 May 2012 00:00:00 +0900
 

  Modified: packages/debian/groonga-server.logrotate (+9 -1)
===================================================================
--- packages/debian/groonga-server.logrotate    2012-05-09 15:40:50 +0900 (2e23756)
+++ packages/debian/groonga-server.logrotate    2012-05-09 15:42:16 +0900 (4a2fd7f)
@@ -8,6 +8,14 @@
     create 640 groonga groonga
     sharedscripts
     postrotate
-        /usr/bin/groonga -c 127.0.0.1 log_reopen > /dev/null
+        . /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
 }




Groonga-commit メーリングリストの案内
Back to archive index