1
0
forked from rpms/rpcbind

Corrected boot dependency in systemd files (bz 1401561)

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2017-01-28 15:46:33 -05:00
parent bf961fc8ac
commit 74b1a706a9
4 changed files with 20 additions and 22 deletions

View File

@ -0,0 +1,14 @@
diff -up rpcbind-0.2.4/systemd/rpcbind.service.in.orig rpcbind-0.2.4/systemd/rpcbind.service.in
--- rpcbind-0.2.4/systemd/rpcbind.service.in.orig 2017-01-28 11:47:59.505282030 -0500
+++ rpcbind-0.2.4/systemd/rpcbind.service.in 2017-01-28 13:13:43.763324301 -0500
@@ -6,8 +6,8 @@ RequiresMountsFor=@statedir@
# Make sure we use the IP addresses listed for
# rpcbind.socket, no matter how this unit is started.
-Wants=rpcbind.socket
-After=rpcbind.socket
+Wants=rpcbind.socket systemd-tmpfiles-setup.service
+After=rpcbind.socket systemd-tmpfiles-setup.service
[Service]
Type=notify

View File

@ -1,13 +0,0 @@
[Unit]
Description=RPC bind service
Requires=rpcbind.socket
Wants=systemd-tmpfiles-setup.service
After=systemd-tmpfiles-setup.service
[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/rpcbind
ExecStart=/sbin/rpcbind -w $RPCBIND_ARGS
[Install]
Also=rpcbind.socket

View File

@ -1,8 +0,0 @@
[Unit]
Description=RPCbind Server Activation Socket
[Socket]
ListenStream=/var/run/rpcbind.sock
[Install]
WantedBy=sockets.target

View File

@ -1,6 +1,6 @@
Name: rpcbind
Version: 0.2.4
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Universal Addresses to RPC Program Number Mapper
Group: System Environment/Daemons
License: BSD
@ -24,6 +24,7 @@ Patch001: rpcbind-0.2.4-systemd-statdir.patch
Patch100: rpcbind-0.2.3-systemd-envfile.patch
Patch101: rpcbind-0.2.3-systemd-tmpfiles.patch
Patch102: rpcbind-0.2.4-runstatdir.patch
Patch103: rpcbind-0.2.4-systemd-service.patch
Provides: portmap = %{version}-%{release}
Obsoletes: portmap <= 4.0-65.3
@ -42,6 +43,7 @@ RPC calls on a server on that machine.
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%build
%ifarch s390 s390x
PIE="-fPIE"
@ -135,6 +137,9 @@ fi
%{_tmpfilesdir}/%{name}.conf
%changelog
* Sat Jan 28 2017 Steve Dickson <steved@redhat.com> - 0.2.4-4
- Corrected boot dependency in systemd files (bz 1401561)
* Mon Jan 23 2017 Steve Dickson <steved@redhat.com> - 0.2.4-3
- Create a systemd dependency for tmpfiles-setup.service (bz 1401561)