1
0
forked from rpms/rpcbind
rpcbind/rpcbind-0.2.4-systemd-statdir.patch
Steve Dickson f0e64fa470 Fix boot dependency in systemd service file (bz 1401561)
Signed-off-by: Steve Dickson <steved@redhat.com>
2017-01-03 13:56:22 -05:00

28 lines
915 B
Diff

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.