All of lore.kernel.org
 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: Tue, 13 Jan 2015 15:37:36 -0500	[thread overview]
Message-ID: <1421181457-8159-3-git-send-email-steved@redhat.com> (raw)
In-Reply-To: <1421181457-8159-1-git-send-email-steved@redhat.com>

Use BindTo, instead of PartOf, to bind the nfs-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,
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..c16af57 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
+BindTo=nfs-server.service
 
 Wants=nfs-config.service
 After=nfs-config.service
-- 
2.1.0


  parent reply	other threads:[~2015-01-13 20:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 20:37 [PATCH 0/3] Miscellaneous systemd changes Steve Dickson
2015-01-13 20:37 ` [PATCH 1/3] systemd: Bind rpc.idmapd to the nfs-server service Steve Dickson
2015-01-14  9:46   ` [systemd-devel] " Michal Sekletar
2015-01-14 13:26     ` Steve Dickson
2015-01-13 20:37 ` Steve Dickson [this message]
2015-01-13 20:37 ` [PATCH 3/3] start-statd: Use the canonical to check if systemd is running Steve Dickson
2015-01-15 19:36   ` J. Bruce Fields
2015-01-14 15:46 [PATCH 0/3] Miscellaneous systemd changes (v2) Steve Dickson
2015-01-14 15:46 ` [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=1421181457-8159-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.