forked from rpms/rpcbind
28 lines
915 B
Diff
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.
|