Skip to contentSkip to conversation

systemd: Decouple the starting and stopping of rpcbind/nfs-server

PATCH In review Steve Dickson 1 participant 2 messages Nov 9, 2015 – Nov 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: Decouple the starting and stopping of rpcbind/nfs-server

Commit b98f2af15 introduced a regression that cause the starting and stop of rpcbind and the nfs-server to be depended on each other

The starting of the NFS server should start rpcbind but bring rpcbind down should not bring the NFS server down.

---
 systemd/nfs-server.service | 2 +-
 systemd/rpc-statd.service  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
systemd/nfs-server.service +1 -1
index 12b02f2..317e5d6 100644
@@ -1,7 +1,7 @@
 [Unit]
 Description=NFS server and services
 DefaultDependencies=no
-Requires= network.target proc-fs-nfsd.mount rpcbind.service
+Requires= network.target proc-fs-nfsd.mount rpcbind.target
 Requires= nfs-mountd.service
 Wants=rpc-statd.service nfs-idmapd.service
 Wants=rpc-statd-notify.service
systemd/rpc-statd.service +1 -1
index 14604d7..f16ea42 100644
@@ -3,7 +3,7 @@ Description=NFS status monitor for NFSv2/3 locking.
 DefaultDependencies=no
 Conflicts=umount.target
 Requires=nss-lookup.target rpcbind.target
-After=network.target nss-lookup.target rpcbind.target
+After=network.target nss-lookup.target rpcbind.service
 
 PartOf=nfs-utils.service
 
Signature · 1 line
2.4.3
#1 lore raw
Quoted 9 lines · Steve Dickson

Commit b98f2af15 introduced a regression that cause the starting and stop of rpcbind and the nfs-server to be depended on each other

The starting of the NFS server should start rpcbind but bring rpcbind down should not bring the NFS server down.

Committed..

steved.

Quoted 32 lines
---
 systemd/nfs-server.service | 2 +-
 systemd/rpc-statd.service  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
systemd/nfs-server.service +1 -1
index 12b02f2..317e5d6 100644
@@ -1,7 +1,7 @@
 [Unit]
 Description=NFS server and services
 DefaultDependencies=no
-Requires= network.target proc-fs-nfsd.mount rpcbind.service
+Requires= network.target proc-fs-nfsd.mount rpcbind.target
 Requires= nfs-mountd.service
 Wants=rpc-statd.service nfs-idmapd.service
 Wants=rpc-statd-notify.service
systemd/rpc-statd.service +1 -1
index 14604d7..f16ea42 100644
@@ -3,7 +3,7 @@ Description=NFS status monitor for NFSv2/3 locking.
 DefaultDependencies=no
 Conflicts=umount.target
 Requires=nss-lookup.target rpcbind.target
-After=network.target nss-lookup.target rpcbind.target
+After=network.target nss-lookup.target rpcbind.service
 
 PartOf=nfs-utils.service