Fix boot dependency in systemd service file (bz 1401561)
Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
parent
e8b92e8764
commit
f0e64fa470
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
rpcbind-0.2.4
|
||||
/rpcbind-0.2.4.tar.bz2
|
||||
x86_64
|
||||
Makefile
|
||||
|
27
rpcbind-0.2.4-systemd-statdir.patch
Normal file
27
rpcbind-0.2.4-systemd-statdir.patch
Normal file
@ -0,0 +1,27 @@
|
||||
commit ee569be4d6189a68b38d2af162af00ff475b48e2
|
||||
Author: Yann Leprince <yann.leprince@ylep.fr>
|
||||
Date: Wed Dec 21 14:32:54 2016 -0500
|
||||
|
||||
Fix boot dependency in systemd service file
|
||||
|
||||
From: Yann Leprince <yann.leprince@ylep.fr>
|
||||
|
||||
This fix ensures that a separate /var partition will be mounted before
|
||||
rpcbind tries to write its status to /var/run.
|
||||
|
||||
Acked-by: NeilBrown <neilb@suse.com>
|
||||
Signed-off-by: Yann Leprince <yann.leprince@ylep.fr>
|
||||
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||
|
||||
diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
|
||||
index e7e86da..03a9e0b 100644
|
||||
--- a/systemd/rpcbind.service.in
|
||||
+++ b/systemd/rpcbind.service.in
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=RPC Bind
|
||||
Documentation=man:rpcbind(8)
|
||||
DefaultDependencies=no
|
||||
+RequiresMountsFor=@statedir@
|
||||
|
||||
# Make sure we use the IP addresses listed for
|
||||
# rpcbind.socket, no matter how this unit is started.
|
10
rpcbind.spec
10
rpcbind.spec
@ -1,6 +1,6 @@
|
||||
Name: rpcbind
|
||||
Version: 0.2.4
|
||||
Release: 0%{?dist}
|
||||
Release: 1%{?dist}
|
||||
Summary: Universal Addresses to RPC Program Number Mapper
|
||||
Group: System Environment/Daemons
|
||||
License: BSD
|
||||
@ -19,6 +19,8 @@ Requires(post): chkconfig systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd coreutils
|
||||
|
||||
Patch001: rpcbind-0.2.4-systemd-statdir.patch
|
||||
|
||||
Patch100: rpcbind-0.2.3-systemd-envfile.patch
|
||||
Patch101: rpcbind-0.2.3-systemd-tmpfiles.patch
|
||||
|
||||
@ -33,6 +35,9 @@ RPC calls on a server on that machine.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# 1401561 - rpcbind-0.2.3-12.rc2.fc24 fails to start at boot
|
||||
%patch001 -p1
|
||||
|
||||
%patch100 -p1
|
||||
%patch101 -p1
|
||||
%build
|
||||
@ -128,6 +133,9 @@ fi
|
||||
%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%changelog
|
||||
* Tue Jan 3 2017 Steve Dickson <steved@redhat.com> - 0.2.4-1
|
||||
- Fix boot dependency in systemd service file (bz 1401561)
|
||||
|
||||
* Wed Nov 30 2016 Steve Dickson <steved@redhat.com> - 0.2.4-0
|
||||
- Update to the latest upstream release: 0.2.4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user