diff options
author | Steve Dickson <steved@redhat.com> | 2015-01-14 10:26:49 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-01-15 05:41:27 -0500 |
commit | 88855c72ae341f545e9b669568c7a6bb3e257e17 (patch) | |
tree | 6d8ac1ba2291ad4cb2bc613b18072a08eb1417aa | |
parent | b5cea96efb1512340a536e25650c5b548ddddfc6 (diff) | |
download | nfs-utils-88855c72ae341f545e9b669568c7a6bb3e257e17.tar.gz nfs-utils-88855c72ae341f545e9b669568c7a6bb3e257e17.tar.xz nfs-utils-88855c72ae341f545e9b669568c7a6bb3e257e17.zip |
systemd: Bind the nfs-mountd service to the nfs-server service
Use BindsTo, instead of PartOf, to bind the rpc-mountd
service to the nfs-server service. Its a much tighter
bind than PartOf.
The Partof=nfs-utils.service was not needed.
One side effect of this tighter bond is when rpc.mountd
is stop, that will also bring the nfs server down
as well, due to the Requires=nfs-mountd.service in
the nfs-server service
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | systemd/nfs-mountd.service | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/systemd/nfs-mountd.service b/systemd/nfs-mountd.service index 7ccc0f7..d908afe 100644 --- a/systemd/nfs-mountd.service +++ b/systemd/nfs-mountd.service @@ -3,8 +3,7 @@ Description=NFS Mount Daemon Requires=proc-fs-nfsd.mount After=proc-fs-nfsd.mount After=network.target -PartOf=nfs-server.service -PartOf=nfs-utils.service +BindsTo=nfs-server.service Wants=nfs-config.service After=nfs-config.service |