Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef2e78910f | ||
|
|
d40b3b5896 | ||
|
|
9860a44b1c | ||
|
|
58e0d524e3 | ||
|
|
2c45f082af | ||
|
|
9bd594e9e7 |
4 changed files with 64 additions and 95 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -34,3 +34,8 @@ corosync-1.2.7.tar.gz
|
|||
/corosync-2.99.1.tar.gz
|
||||
/corosync-2.99.2.tar.gz
|
||||
/corosync-2.99.3.tar.gz
|
||||
/corosync-2.99.4.tar.gz
|
||||
/corosync-2.99.5.tar.gz
|
||||
/corosync-3.0.0.tar.gz
|
||||
/corosync-3.0.1.tar.gz
|
||||
/corosync-3.0.2.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
From c34208ad402b45f52b5d3ee8d2a08df0779ec9aa Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
|
||||
Date: Tue, 14 Aug 2018 01:18:47 +0200
|
||||
Subject: [PATCH] systemd: prevent redundancy in journal
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Originating from a dual sink (stderr and syslog).
|
||||
|
||||
Annotated example from "journalctl -b --no-hostname -u corosync":
|
||||
|
||||
Aug 14 00:27:45 corosync[5203]: [MAIN ] Corosync Cluster
|
||||
Engine ('2.99.3'): started and ready to provide service.
|
||||
^ from syslog source
|
||||
Aug 14 00:27:45 corosync[5203]: notice [MAIN ] Corosync Cluster
|
||||
Engine ('2.99.3'): started and ready to provide service.
|
||||
^ from stderr source
|
||||
|
||||
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
||||
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
|
||||
---
|
||||
init/corosync.service.in | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/init/corosync.service.in b/init/corosync.service.in
|
||||
index 8c57652d4..654e41fc2 100644
|
||||
--- a/init/corosync.service.in
|
||||
+++ b/init/corosync.service.in
|
||||
@@ -10,6 +10,13 @@ EnvironmentFile=-@INITCONFIGDIR@/corosync
|
||||
ExecStart=@SBINDIR@/corosync -f $COROSYNC_OPTIONS
|
||||
Type=notify
|
||||
|
||||
+# In typical systemd deployments, both standard outputs are forwarded to
|
||||
+# journal (stderr is what's relevant in the pristine corosync configuration),
|
||||
+# which hazards a message redundancy since the syslog stream usually ends there
|
||||
+# as well; before editing this line, you may want to check DefaultStandardError
|
||||
+# in systemd-system.conf(5) and whether /dev/log is a systemd related symlink.
|
||||
+StandardError=null
|
||||
+
|
||||
# The following config is for corosync with enabled watchdog service.
|
||||
#
|
||||
# When corosync watchdog service is being enabled and using with
|
||||
109
corosync.spec
109
corosync.spec
|
|
@ -1,37 +1,39 @@
|
|||
# Conditionals
|
||||
# Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
|
||||
# to disable or enable specific features
|
||||
%bcond_with testagents
|
||||
%bcond_with watchdog
|
||||
%bcond_with monitoring
|
||||
%bcond_without snmp
|
||||
%bcond_without dbus
|
||||
%bcond_without systemd
|
||||
%bcond_without xmlconf
|
||||
%bcond_without nozzle
|
||||
%bcond_without vqsim
|
||||
%bcond_without runautogen
|
||||
%bcond_without libcgroup
|
||||
%bcond_without userflags
|
||||
|
||||
%global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
|
||||
%global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
|
||||
|
||||
Name: corosync
|
||||
Summary: The Corosync Cluster Engine and Application Programming Interfaces
|
||||
Version: 2.99.3
|
||||
Release: 3%{?gitver}%{?dist}
|
||||
Version: 3.0.2
|
||||
Release: 1%{?gitver}%{?dist}
|
||||
License: BSD
|
||||
URL: http://corosync.github.io/corosync/
|
||||
Source0: http://build.clusterlabs.org/corosync/releases/%{name}-%{version}%{?gittarver}.tar.gz
|
||||
Patch0: https://github.com/corosync/corosync/commit/c34208ad402b45f52b5d3ee8d2a08df0779ec9aa.patch
|
||||
|
||||
# Runtime bits
|
||||
# The automatic dependency overridden in favor of explicit version lock
|
||||
Requires: corosynclib%{?_isa} = %{version}-%{release}
|
||||
|
||||
# NSS crypto plugin should be always installed
|
||||
Requires: libknet1-crypto-nss-plugin
|
||||
|
||||
# Build bits
|
||||
BuildRequires: gcc
|
||||
BuildRequires: groff
|
||||
BuildRequires: libqb-devel
|
||||
BuildRequires: nss-devel
|
||||
BuildRequires: libknet1-devel
|
||||
BuildRequires: zlib-devel
|
||||
%if %{with runautogen}
|
||||
|
|
@ -46,6 +48,9 @@ BuildRequires: net-snmp-devel
|
|||
%if %{with dbus}
|
||||
BuildRequires: dbus-devel
|
||||
%endif
|
||||
%if %{with nozzle}
|
||||
BuildRequires: libnozzle1-devel
|
||||
%endif
|
||||
%if %{with systemd}
|
||||
%{?systemd_requires}
|
||||
BuildRequires: systemd
|
||||
|
|
@ -57,18 +62,12 @@ Requires(preun): /sbin/chkconfig
|
|||
%if %{with xmlconf}
|
||||
Requires: libxslt
|
||||
%endif
|
||||
%if %{with libcgroup}
|
||||
BuildRequires: libcgroup-devel
|
||||
%if %{with vqsim}
|
||||
BuildRequires: readline-devel
|
||||
%endif
|
||||
|
||||
# git-style patch application
|
||||
BuildRequires: git
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{?gittarver}
|
||||
%global __scm git_am
|
||||
%__scm_setup_git
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%if %{with runautogen}
|
||||
|
|
@ -76,9 +75,6 @@ BuildRequires: git
|
|||
%endif
|
||||
|
||||
%{configure} \
|
||||
%if %{with testagents}
|
||||
--enable-testagents \
|
||||
%endif
|
||||
%if %{with watchdog}
|
||||
--enable-watchdog \
|
||||
%endif
|
||||
|
|
@ -97,8 +93,14 @@ BuildRequires: git
|
|||
%if %{with xmlconf}
|
||||
--enable-xmlconf \
|
||||
%endif
|
||||
%if %{with libcgroup}
|
||||
--enable-libcgroup \
|
||||
%if %{with nozzle}
|
||||
--enable-nozzle \
|
||||
%endif
|
||||
%if %{with vqsim}
|
||||
--enable-vqsim \
|
||||
%endif
|
||||
%if %{with userflags}
|
||||
--enable-user-flags \
|
||||
%endif
|
||||
--with-initddir=%{_initrddir} \
|
||||
--with-systemddir=%{_unitdir} \
|
||||
|
|
@ -168,7 +170,6 @@ fi
|
|||
%{_bindir}/corosync-blackbox
|
||||
%if %{with xmlconf}
|
||||
%{_bindir}/corosync-xmlproc
|
||||
%config(noreplace) %{_sysconfdir}/corosync/corosync.xml.example
|
||||
%dir %{_datadir}/corosync
|
||||
%{_datadir}/corosync/xml2conf.xsl
|
||||
%{_mandir}/man8/corosync-xmlproc.8*
|
||||
|
|
@ -177,7 +178,6 @@ fi
|
|||
%dir %{_sysconfdir}/corosync
|
||||
%dir %{_sysconfdir}/corosync/uidgid.d
|
||||
%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
|
||||
%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example.udpu
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-notifyd
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/corosync
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/corosync
|
||||
|
|
@ -209,29 +209,6 @@ fi
|
|||
%{_mandir}/man5/votequorum.5*
|
||||
%{_mandir}/man8/cmap_keys.8*
|
||||
|
||||
# optional testagent rpm
|
||||
#
|
||||
%if %{with testagents}
|
||||
|
||||
%package -n corosync-testagents
|
||||
Summary: The Corosync Cluster Engine Test Agents
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n corosync-testagents
|
||||
This package contains corosync test agents.
|
||||
|
||||
%files -n corosync-testagents
|
||||
%defattr(755,root,root,-)
|
||||
%{_datadir}/corosync/tests/mem_leak_test.sh
|
||||
%{_datadir}/corosync/tests/net_breaker.sh
|
||||
%{_datadir}/corosync/tests/cmap-dispatch-deadlock.sh
|
||||
%{_datadir}/corosync/tests/shm_leak_audit.sh
|
||||
%{_bindir}/cpg_test_agent
|
||||
%{_bindir}/sam_test_agent
|
||||
%{_bindir}/votequorum_test_agent
|
||||
|
||||
%endif
|
||||
|
||||
# library
|
||||
#
|
||||
%package -n corosynclib
|
||||
|
|
@ -245,7 +222,6 @@ This package contains corosync libraries.
|
|||
%{_libdir}/libcfg.so.*
|
||||
%{_libdir}/libcpg.so.*
|
||||
%{_libdir}/libcmap.so.*
|
||||
%{_libdir}/libtotem_pg.so.*
|
||||
%{_libdir}/libquorum.so.*
|
||||
%{_libdir}/libvotequorum.so.*
|
||||
%{_libdir}/libsam.so.*
|
||||
|
|
@ -277,15 +253,9 @@ The Corosync Cluster Engine APIs.
|
|||
%{_includedir}/corosync/sam.h
|
||||
%{_includedir}/corosync/quorum.h
|
||||
%{_includedir}/corosync/votequorum.h
|
||||
%dir %{_includedir}/corosync/totem/
|
||||
%{_includedir}/corosync/totem/totem.h
|
||||
%{_includedir}/corosync/totem/totemip.h
|
||||
%{_includedir}/corosync/totem/totempg.h
|
||||
%{_includedir}/corosync/totem/totemstats.h
|
||||
%{_libdir}/libcfg.so
|
||||
%{_libdir}/libcpg.so
|
||||
%{_libdir}/libcmap.so
|
||||
%{_libdir}/libtotem_pg.so
|
||||
%{_libdir}/libquorum.so
|
||||
%{_libdir}/libvotequorum.so
|
||||
%{_libdir}/libsam.so
|
||||
|
|
@ -297,7 +267,44 @@ The Corosync Cluster Engine APIs.
|
|||
%{_mandir}/man3/sam_*3*
|
||||
%{_mandir}/man3/cmap_*3*
|
||||
|
||||
%if %{with vqsim}
|
||||
%package -n corosync-vqsim
|
||||
Summary: The Corosync Cluster Engine - Votequorum Simulator
|
||||
Requires: corosynclib%{?_isa} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description -n corosync-vqsim
|
||||
A command-line simulator for the corosync votequorum subsystem.
|
||||
It uses the same code as the corosync quorum system but forks
|
||||
them into subprocesses to simulate nodes.
|
||||
Nodes can be added and removed as well as partitioned (to simulate
|
||||
network splits)
|
||||
|
||||
%files -n corosync-vqsim
|
||||
%doc LICENSE
|
||||
%{_bindir}/corosync-vqsim
|
||||
%{_mandir}/man8/corosync-vqsim.8*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Jun 12 2019 Jan Friesse <jfriesse@redhat.com> - 3.0.2-1
|
||||
- New upstream release
|
||||
|
||||
* Tue Jan 15 2019 Jan Friesse <jfriesse@redhat.com> - 3.0.1-1
|
||||
- New upstream release
|
||||
|
||||
* Fri Dec 14 2018 Jan Friesse <jfriesse@redhat.com> - 3.0.0-1
|
||||
- New upstream release
|
||||
|
||||
* Fri Dec 7 2018 Jan Friesse <jfriesse@redhat.com> - 2.99.5-1
|
||||
- New upstream release
|
||||
|
||||
* Tue Dec 4 2018 Jan Friesse <jfriesse@redhat.com> - 2.99.4-2
|
||||
- Add libknet1-crypto-nss-plugin dependency
|
||||
|
||||
* Tue Nov 20 2018 Jan Friesse <jfriesse@redhat.com> - 2.99.4-1
|
||||
- New upstream release
|
||||
|
||||
* Thu Aug 16 2018 Jan Pokorný <jpokorny+rpm-corosync@redhat.com> - 2.99.3-3
|
||||
- Rebuild again, since the previous one was so unfortunate it got affected
|
||||
with binutils (2.31.1-3.fc29) producing non-monotonically increasing
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (corosync-2.99.3.tar.gz) = 32a5ac4ba1c4eefd52c27b9fc42932be3731548652cb4bafb82acb04527c75d49f0659378340e8a0b73d195a571aea83e57e4ae321e2a1cd67c8f2c03e5b85ac
|
||||
SHA512 (corosync-3.0.2.tar.gz) = be2d5caf41fea9dc337a317ee4f2f90ad6587b2ad2ff09b62e376e0d9273fb8ac6b71a4c1b0ac8e263f1eef2fbc2fb7c0558f1c78cd71f1242a57c58b6d137ca
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue