public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/inn] epel10: use rsyslog instead of sysklogd, do not log fatal error for non-error
@ 2026-08-26 8:05 Ondrej Vasik
0 siblings, 0 replies; only message in thread
From: Ondrej Vasik @ 2026-08-26 8:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/inn
Branch : epel10
Commit : 90dafdaf2601ca603b5dc46f72462169dff0b759
Author : Ondrej Vasik <ovasik@fedoraproject.org>
Date : 2008-01-16T13:06:34+00:00
Stats : +38/-15 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/inn/c/90dafdaf2601ca603b5dc46f72462169dff0b759?branch=epel10
Log:
use rsyslog instead of sysklogd, do not log fatal error for non-error
eaddrinuse in rcreader
---
diff --git a/inn-2.4.3.rcreaderaddrinuse.patch b/inn-2.4.3.rcreaderaddrinuse.patch
new file mode 100644
index 0000000..c5b8b3c
--- /dev/null
+++ b/inn-2.4.3.rcreaderaddrinuse.patch
@@ -0,0 +1,16 @@
+diff -urNp inn-2.4.3-orig/innd/rc.c inn-2.4.3/innd/rc.c
+--- inn-2.4.3-orig/innd/rc.c 2008-01-16 13:18:49.000000000 +0100
++++ inn-2.4.3/innd/rc.c 2008-01-16 13:25:48.000000000 +0100
+@@ -1907,11 +1907,11 @@ RCsetup(int i)
+ /* Set it up to wait for connections. */
+ if (listen(i, MAXLISTEN) < 0) {
+ j = errno;
+- syslog(L_FATAL, "%s cant listen RCreader %m", LogName);
+ /* some IPv6 systems already listening on any address will
+ return EADDRINUSE when trying to listen on the IPv4 socket */
+ if (j == EADDRINUSE)
+ return;
++ syslog(L_FATAL, "%s cant listen RCreader %m", LogName);
+ exit(1);
+ }
+
diff --git a/inn.spec b/inn.spec
index 791afaf..ccf11d5 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
Summary: The InterNetNews (INN) system, an Usenet news server
Name: inn
Version: 2.4.3
-Release: 8%{?dist}
+Release: 9%{?dist}
#see LICENSE file for details
License: GPL+ and BSD and MIT and Public Domain
Group: System Environment/Daemons
@@ -20,6 +20,7 @@ Patch4: inn-2.4.1.pie.patch
Patch6: inn-2.4.1.posix.patch
Patch7: inn-2.4.3.warn.patch
Patch8: inn-2.4.2-makedbz.patch
+Patch9: inn-2.4.3.rcreaderaddrinuse.patch
BuildRequires: perl-devel python db4-devel byacc krb5-devel pam-devel e2fsprogs-devel
Prereq: /sbin/chkconfig, grep, coreutils, sed
Requires: bash >= 2.0, inews
@@ -77,6 +78,7 @@ local news servers.
%patch6 -p1 -b .posix
%patch7 -p1 -b .warn
%patch8 -p1 -b .makedbz
+%patch9 -p1 -b .addrinuse
perl -pi -e 's/LOCK_READ/LLOCK_READ/' `find . -type f`
perl -pi -e 's/LOCK_WRITE/LLOCK_WRITE/' `find . -type f`
@@ -210,26 +212,26 @@ chown -R news:news /var/log/news*
service innd stop > /dev/null 2>&1
exit 0
-%triggerin -- sysklogd
-if [ -f /etc/syslog.conf ]; then
- if ! grep -q INN /etc/syslog.conf; then
- sed 's/mail.none;/mail.none;news.none;/' < /etc/syslog.conf > /etc/syslog.conf.inn
- mv /etc/syslog.conf.inn /etc/syslog.conf
+%triggerin -- rsyslog
+if [ -f /etc/rsyslog.conf ]; then
+ if ! grep -q INN /etc/rsyslog.conf; then
+ sed 's/mail.none;/mail.none;news.none;/' < /etc/rsyslog.conf > /etc/rsyslog.conf.inn
+ mv /etc/rsyslog.conf.inn /etc/rsyslog.conf
echo '' \
- >> /etc/syslog.conf
+ >> /etc/rsyslog.conf
echo '#' \
- >> /etc/syslog.conf
+ >> /etc/rsyslog.conf
echo '# INN' \
- >> /etc/syslog.conf
+ >> /etc/rsyslog.conf
echo '#' \
- >> /etc/syslog.conf
- echo 'news.=crit /var/log/news/news.crit' >> /etc/syslog.conf
- echo 'news.=err /var/log/news/news.err' >> /etc/syslog.conf
- echo 'news.notice /var/log/news/news.notice' >> /etc/syslog.conf
+ >> /etc/rsyslog.conf
+ echo 'news.=crit /var/log/news/news.crit' >> /etc/rsyslog.conf
+ echo 'news.=err /var/log/news/news.err' >> /etc/rsyslog.conf
+ echo 'news.notice /var/log/news/news.notice' >> /etc/rsyslog.conf
fi
- if [ -f /var/run/syslog.pid ]; then
- kill -HUP `cat /var/run/syslog.pid` 2> /dev/null ||:
+ if [ -f /var/run/rsyslogd.pid ]; then
+ kill -HUP `cat /var/run/rsyslogd.pid` 2> /dev/null ||:
fi
fi
@@ -293,6 +295,11 @@ exit 0
%{_mandir}/man1/inews*
%changelog
+* Wed Jan 16 2008 Ondrej Vasik <ovasik@redhat.com> 2.4.3-9
+- do not show annoying fatal log message when nonfatal error
+ eaddrinuse occured in rcreader
+- use /etc/rsyslog.conf instead of /etc/syslog.conf
+
* Mon Jan 07 2008 Ondrej Vasik <ovasik@redhat.com> 2.4.3-8
- initscript changes - review changes caused errors while
in stop() phase - not known variable NEWSBIN(#401241)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-26 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 8:05 [rpms/inn] epel10: use rsyslog instead of sysklogd, do not log fatal error for non-error Ondrej Vasik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox