Explorar el Código

fix logfile rotation: reload is useless because PostgreSQL doesn't reopen the logfile anyway, so workaround by using the shtool rotate -c option

Ralf S. Engelschall hace 21 años
padre
commit
c43d3542a1
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      postgresql/postgresql.spec
  2. 2 2
      postgresql/rc.postgresql

+ 1 - 1
postgresql/postgresql.spec

@@ -43,7 +43,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_postgresql}
-Release:      20040818
+Release:      20040819
 
 #   package options
 %option       with_server   yes

+ 2 - 2
postgresql/rc.postgresql

@@ -94,9 +94,9 @@
 %daily -u @l_rusr@
     rcService postgresql enable yes || exit 0
     shtool rotate -f \
-        -n ${postgresql_log_numfiles} -s ${postgresql_log_minsize} -d \
+        -n ${postgresql_log_numfiles} -s ${postgresql_log_minsize} -d -c \
         -z ${postgresql_log_complevel} -m 600 -o @l_rusr@ -g @l_rgrp@ \
         -P "$postgresql_log_prolog" \
-        -E "$postgresql_log_epilog && rc postgresql reload" \
+        -E "$postgresql_log_epilog" \
         $postgresql_log_file