From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:60112 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753343AbbANPqz (ORCPT ); Wed, 14 Jan 2015 10:46:55 -0500 From: Steve Dickson To: Linux NFS Mailing list Cc: Systemd Mailing List Subject: [PATCH 2/3] systemd: Bind the nfs-mountd service to the nfs-server service Date: Wed, 14 Jan 2015 10:46:49 -0500 Message-Id: <1421250410-7246-3-git-send-email-steved@redhat.com> In-Reply-To: <1421250410-7246-1-git-send-email-steved@redhat.com> References: <1421250410-7246-1-git-send-email-steved@redhat.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: 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 --- 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