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

Back to archive index

HAYASHI Kentaro null+****@clear*****
Mon Sep 24 10:56:06 JST 2012


HAYASHI Kentaro	2012-09-24 10:56:06 +0900 (Mon, 24 Sep 2012)

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

  Log:
    deb: split logrotate script

  Added files:
    data/logrotate.d/redhat/groonga-server-gqtp
    data/logrotate.d/redhat/groonga-server-http
  Removed files:
    data/logrotate.d/redhat/groonga-server
  Modified files:
    data/logrotate.d/redhat/Makefile.am

  Modified: data/logrotate.d/redhat/Makefile.am (+1 -1)
===================================================================
--- data/logrotate.d/redhat/Makefile.am    2012-09-24 10:26:56 +0900 (2835ee6)
+++ data/logrotate.d/redhat/Makefile.am    2012-09-24 10:56:06 +0900 (00d2c2e)
@@ -1,5 +1,5 @@
 
-logrotate_conf = groonga-server groonga-httpd
+logrotate_conf = groonga-server-gqtp groonga-server-http groonga-httpd
 
 if REDHAT_PLATFORM
 logrotatedir = $(sysconfdir)/logrotate.d

  Deleted: data/logrotate.d/redhat/groonga-server (+0 -21) 100644
===================================================================
--- data/logrotate.d/redhat/groonga-server    2012-09-24 10:26:56 +0900 (2ffab88)
+++ /dev/null
@@ -1,21 +0,0 @@
-/var/log/groonga/*.log {
-    daily
-    missingok
-    rotate 30
-    compress
-    delaycompress
-    notifempty
-    create 640 groonga groonga
-    sharedscripts
-    postrotate
-        . /etc/sysconfig/groonga
-        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: data/logrotate.d/redhat/groonga-server-gqtp (+16 -0) 100644
===================================================================
--- /dev/null
+++ data/logrotate.d/redhat/groonga-server-gqtp    2012-09-24 10:56:06 +0900 (e28207e)
@@ -0,0 +1,16 @@
+/var/log/groonga/*-gqtp.log {
+    daily
+    missingok
+    rotate 30
+    compress
+    delaycompress
+    notifempty
+    create 640 groonga groonga
+    sharedscripts
+    postrotate
+        . /etc/sysconfig/groonga-server-gqtp
+        if x"$ENABLE" = x"yes"; then
+            /usr/bin/groonga -c 127.0.0.1 log_reopen > /dev/null
+        fi
+    endscript
+}

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



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