Linux NFS development
 help / color / mirror / Atom feed
From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Cc: Systemd Mailing List <systemd-devel@lists.freedesktop.org>
Subject: [PATCH 2/3] systemd: Bind the nfs-mountd service to the nfs-server service
Date: Wed, 14 Jan 2015 10:46:49 -0500	[thread overview]
Message-ID: <1421250410-7246-3-git-send-email-steved@redhat.com> (raw)
In-Reply-To: <1421250410-7246-1-git-send-email-steved@redhat.com>

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>
---
 systemd/nfs-mountd.service | 3 +--
 1 file changed, 1 insertion(+), 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
-- 
2.1.0


  parent reply	other threads:[~2015-01-14 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14 15:46 [PATCH 0/3] Miscellaneous systemd changes (v2) Steve Dickson
2015-01-14 15:46 ` [PATCH 1/3] systemd: Bind rpc.idmapd to the nfs-server service Steve Dickson
2015-01-14 15:46 ` Steve Dickson [this message]
2015-01-14 15:46 ` [PATCH 3/3] start-statd: Use the canonical to check if systemd is running Steve Dickson
2015-01-15 11:20 ` [systemd-devel] [PATCH 0/3] Miscellaneous systemd changes (v2) Steve Dickson
  -- strict thread matches above, loose matches on Subject: below --
2015-01-13 20:37 [PATCH 0/3] Miscellaneous systemd changes Steve Dickson
2015-01-13 20:37 ` [PATCH 2/3] systemd: Bind the nfs-mountd service to the nfs-server service Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421250410-7246-3-git-send-email-steved@redhat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=systemd-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox