[Groonga-commit] groonga/groonga at 1c74861 [master] package redhat logrotate: use SIGUSR1 instead of log_reopen

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Fri Jul 17 16:47:35 JST 2015


Kouhei Sutou	2015-07-17 16:47:35 +0900 (Fri, 17 Jul 2015)

  New Revision: 1c748612e677e60f396d8ea5d8f63037b0ab26bb
  https://github.com/groonga/groonga/commit/1c748612e677e60f396d8ea5d8f63037b0ab26bb

  Message:
    package redhat logrotate: use SIGUSR1 instead of log_reopen
    
    Because groonga-httpd opens not only Groonga related log
    files (groonga.log and groonga-query.log) but also nginx related log
    files (access.log and error.log). log_reopen cares only about Groonga
    related log files. We should care about all log files.
    
    GitHub: fix #362
    
    Reported by jacob16bit. Thanks!!!

  Modified files:
    data/logrotate.d/redhat/groonga-httpd

  Modified: data/logrotate.d/redhat/groonga-httpd (+1 -2)
===================================================================
--- data/logrotate.d/redhat/groonga-httpd    2015-07-17 13:38:14 +0900 (1d95e6f)
+++ data/logrotate.d/redhat/groonga-httpd    2015-07-17 16:47:35 +0900 (b52975f)
@@ -8,8 +8,7 @@
     sharedscripts
     postrotate
         if [ -f /var/lock/subsys/groonga-httpd ]; then
-            /usr/bin/curl --silent --output /dev/null \
-                "http://127.0.0.1:10041/d/log_reopen"
+            /bin/kill -USR1 $(cat /var/run/groonga/groonga-httpd.pid)
         fi
     endscript
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index