]> git.pld-linux.org Git - packages/inn.git/commitdiff
- add nnrpd_no_trace.patch - don't put L_TRACE messages to log, causes big
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 18 Aug 2008 15:14:48 +0000 (15:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  load of syslog daemon, even if you put it /dev/null

Changed files:
    inn-nnrpd_no_trace.patch -> 1.1
    inn.spec -> 1.183

inn-nnrpd_no_trace.patch [new file with mode: 0644]
inn.spec

diff --git a/inn-nnrpd_no_trace.patch b/inn-nnrpd_no_trace.patch
new file mode 100644 (file)
index 0000000..dbf74c7
--- /dev/null
@@ -0,0 +1,15 @@
+--- ./nnrpd/nnrpd.c.org        2008-06-29 19:56:57.000000000 +0200
++++ ./nnrpd/nnrpd.c    2008-08-18 17:09:30.512424093 +0200
+@@ -858,6 +858,12 @@ main(int argc, char *argv[])
+     }
+     message_program_name = xstrdup(name);
+     openlog(message_program_name, L_OPENLOG_FLAGS | LOG_PID, LOG_INN_PROG);
++    /* Don't log debug unless TRACE is defined.
++     * Too much noise in /dev/log causes big load on syslog daemon.
++     */
++#ifndef TRACE
++    setlogmask(LOG_UPTO(L_NOTICE));
++#endif
+     message_handlers_die(1, message_log_syslog_crit);
+     message_handlers_warn(1, message_log_syslog_warning);
+     message_handlers_notice(1, message_log_syslog_notice);
index 2f5bada3c549e94bb2f377412e7015d3bb190c70..b5d75c7639c84411806a9ea5d7ce0e3e87d68d4a 100644 (file)
--- a/inn.spec
+++ b/inn.spec
@@ -1,5 +1,5 @@
 # TODO
-# - post script is nightmare
+# - post script is nightmare - move it to "init" target of init script
 #
 # Conditional build:
 %bcond_with    largefiles      # enable largefiles (disables tagged hash)
@@ -14,10 +14,9 @@ Summary(pt_BR.UTF-8):        INN, InterNet News System (servidor news)
 Summary(tr.UTF-8):     INN, InterNet Haber Sistemi (haber sunucu)
 Name:          inn
 Version:       2.4.5
-Release:       2
+Release:       2.9
 License:       distributable
 Group:         Networking/Daemons
-#
 Source0:       ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz
 # Source0-md5: 07bc6530c5e296b0ee81a5d6ac4cd355
 Source1:       %{name}-default-active
@@ -39,6 +38,7 @@ Patch6:               %{name}-db4.patch
 Patch7:                %{name}-config.patch
 Patch8:                %{name}-libdir.patch
 Patch9:                %{name}-asneeded.patch
+Patch10:       %{name}-nnrpd_no_trace.patch
 URL:           http://www.isc.org/sw/inn/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -260,6 +260,7 @@ sunucuya makaleyi yollar.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 touch innfeed/*.[ly]
 
This page took 0.171707 seconds and 4 git commands to generate.