Message ID | 1421181457-8159-2-git-send-email-steved@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Jan 13, 2015 at 03:37:35PM -0500, Steve Dickson wrote: > Since rpc.idmapd is only used by the nfs server, to do > its id mapping, bind the nfs-idmapd service to the > nfs-server service so rpc.idmapd will be started > and stopped with the nfs server. > > Signed-off-by: Steve Dickson <steved@redhat.com> > --- > systemd/nfs-idmapd.service | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/systemd/nfs-idmapd.service b/systemd/nfs-idmapd.service > index 11895e2..61c9a64 100644 > --- a/systemd/nfs-idmapd.service > +++ b/systemd/nfs-idmapd.service > @@ -1,7 +1,7 @@ > [Unit] > Description=NFSv4 ID-name mapping service > > -PartOf=nfs-utils.service > +BindTo=nfs-server.service Please note that actual name of the dependency is "BindsTo". Michal > > Wants=nfs-config.service > After=nfs-config.service > -- > 2.1.0 > > _______________________________________________ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 01/14/2015 04:46 AM, Michal Sekletar wrote: > On Tue, Jan 13, 2015 at 03:37:35PM -0500, Steve Dickson wrote: >> Since rpc.idmapd is only used by the nfs server, to do >> its id mapping, bind the nfs-idmapd service to the >> nfs-server service so rpc.idmapd will be started >> and stopped with the nfs server. >> >> Signed-off-by: Steve Dickson <steved@redhat.com> >> --- >> systemd/nfs-idmapd.service | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/systemd/nfs-idmapd.service b/systemd/nfs-idmapd.service >> index 11895e2..61c9a64 100644 >> --- a/systemd/nfs-idmapd.service >> +++ b/systemd/nfs-idmapd.service >> @@ -1,7 +1,7 @@ >> [Unit] >> Description=NFSv4 ID-name mapping service >> >> -PartOf=nfs-utils.service >> +BindTo=nfs-server.service > > Please note that actual name of the dependency is "BindsTo". Got it.. Thanks! steved. > > Michal > >> >> Wants=nfs-config.service >> After=nfs-config.service >> -- >> 2.1.0 >> >> _______________________________________________ >> systemd-devel mailing list >> systemd-devel@lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/systemd/nfs-idmapd.service b/systemd/nfs-idmapd.service index 11895e2..61c9a64 100644 --- a/systemd/nfs-idmapd.service +++ b/systemd/nfs-idmapd.service @@ -1,7 +1,7 @@ [Unit] Description=NFSv4 ID-name mapping service -PartOf=nfs-utils.service +BindTo=nfs-server.service Wants=nfs-config.service After=nfs-config.service
Since rpc.idmapd is only used by the nfs server, to do its id mapping, bind the nfs-idmapd service to the nfs-server service so rpc.idmapd will be started and stopped with the nfs server. Signed-off-by: Steve Dickson <steved@redhat.com> --- systemd/nfs-idmapd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)