From 734dfa59fa13aac1ef2a5f18cb4b0839f990cec4 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Tue, 7 Jan 2020 14:46:35 -0500 Subject: [PATCH] Delay gssproxy start until after network.target --- ...oxy-start-until-after-network.target.patch | 30 +++++++++++++++++++ gssproxy.spec | 6 +++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 Delay-gssproxy-start-until-after-network.target.patch diff --git a/Delay-gssproxy-start-until-after-network.target.patch b/Delay-gssproxy-start-until-after-network.target.patch new file mode 100644 index 0000000..6e7ee62 --- /dev/null +++ b/Delay-gssproxy-start-until-after-network.target.patch @@ -0,0 +1,30 @@ +From 004ac514cd238122b25e5bc5b493dc8d4964ad75 Mon Sep 17 00:00:00 2001 +From: Pat Riehecky +Date: Fri, 27 Dec 2019 13:33:42 -0600 +Subject: [PATCH] Delay gssproxy start until after network.target + +Systemd docs are unclear in this regard, but it appears that +network.target must be ready before domain sockets can be created. + +Signed-off-by: Pat Riehecky +[rharwood@redhat.com: rewrote commit message] +Reviewed-by: Robbie Harwood +Merges: #252 +(cherry picked from commit 153b2ed51c5059abee507ddd240b5abc288d722c) +--- + systemd/gssproxy.service.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/systemd/gssproxy.service.in b/systemd/gssproxy.service.in +index 9d3eef0..482fa4e 100644 +--- a/systemd/gssproxy.service.in ++++ b/systemd/gssproxy.service.in +@@ -1,7 +1,7 @@ + [Unit] + Description=GSSAPI Proxy Daemon + # GSSPROXY will not be started until syslog is +-After=syslog.target ++After=syslog.target network.target + Before=rpc-gssd.service + + [Service] diff --git a/gssproxy.spec b/gssproxy.spec index 3e8b728..61f8e3d 100644 --- a/gssproxy.spec +++ b/gssproxy.spec @@ -1,7 +1,7 @@ Name: gssproxy Version: 0.8.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: GSSAPI Proxy License: MIT @@ -18,6 +18,7 @@ Patch0: Avoid-uninitialized-free-when-allocating-buffers.patch Patch1: Update-NFS-service-name-in-systemd-unit.patch Patch2: Replace-var-run-run-in-gssproxy.service.patch Patch3: Make-syslog-of-call-status-configurable.patch +Patch4: Delay-gssproxy-start-until-after-network.target.patch ### Dependencies ### Requires: krb5-libs >= 1.12.0 @@ -113,6 +114,9 @@ install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/rwtab.d/gssproxy %systemd_postun_with_restart gssproxy.service %changelog +* Tue Jan 07 2020 Robbie Harwood - 0.8.2-7 +- Delay gssproxy start until after network.target + * Thu Oct 31 2019 Robbie Harwood - 0.8.2-6 - Make syslog of call status configurable