systemd: Afters are also needed for the Wants=network-online.target
Subsystems (2)
PATCH 1/1 systemd: Afters are also needed for the Wants=network-online.target
Commit 9d4fc3fb added Wants=network-online.target which is not enough to ensure the network is completely up before the NFS server is started. After=network-online.target is also needed.
Signed-off-by Steve Dickson <[email protected]>
--- systemd/nfs-mountd.service | 1 + systemd/nfs-server.service | 2 +- systemd/rpc-statd-notify.service | 2 +- systemd/rpc-statd.service | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-)
systemd/nfs-mountd.service +1 -0
@@ -4,6 +4,7 @@ DefaultDependencies=no Requires=proc-fs-nfsd.mount Wants=network-online.target After=proc-fs-nfsd.mount +After=network-online.target local-fs.target After=rpcbind.socket BindsTo=nfs-server.service
systemd/nfs-server.service +1 -1
@@ -7,7 +7,7 @@ Wants=rpcbind.socket network-online.target Wants=rpc-statd.service nfs-idmapd.service Wants=rpc-statd-notify.service -After= local-fs.target +After= network-online.target local-fs.target After= proc-fs-nfsd.mount rpcbind.socket nfs-mountd.service After= nfs-idmapd.service rpc-statd.service Before= rpc-statd-notify.service
systemd/rpc-statd-notify.service +1 -1
@@ -2,7 +2,7 @@ Description=Notify NFS peers of a restart DefaultDependencies=no Wants=network-online.target -After=local-fs.target network.target nss-lookup.target +After=local-fs.target network-online.target nss-lookup.target # if we run an nfs server, it needs to be running before we # tell clients that it has restarted.
systemd/rpc-statd.service +1 -1
@@ -4,7 +4,7 @@ DefaultDependencies=no Conflicts=umount.target Requires=nss-lookup.target rpcbind.socket Wants=network-online.target -After=nss-lookup.target rpcbind.socket +After=network-online.target nss-lookup.target rpcbind.socket PartOf=nfs-utils.service
Signature · 1 line
2.9.3
Quoted 8 lines · Steve Dickson
Commit
9d4fc3fbadded Wants=network-online.target which is not enough to ensure the network is completely up before the NFS server is started. After=network-online.target is also needed.Signed-off-by Steve Dickson <[email protected]>
Committed...
steved
Quoted 59 lines
--- systemd/nfs-mountd.service | 1 + systemd/nfs-server.service | 2 +- systemd/rpc-statd-notify.service | 2 +- systemd/rpc-statd.service | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-)systemd/nfs-mountd.service +1
-0@@ -4,6 +4,7 @@ DefaultDependencies=no Requires=proc-fs-nfsd.mount Wants=network-online.target After=proc-fs-nfsd.mount +After=network-online.target local-fs.target After=rpcbind.socket BindsTo=nfs-server.servicesystemd/nfs-server.service +1
-1@@ -7,7 +7,7 @@ Wants=rpcbind.socket network-online.target Wants=rpc-statd.service nfs-idmapd.service Wants=rpc-statd-notify.service -After= local-fs.target +After= network-online.target local-fs.target After= proc-fs-nfsd.mount rpcbind.socket nfs-mountd.service After= nfs-idmapd.service rpc-statd.service Before= rpc-statd-notify.servicesystemd/rpc-statd-notify.service +1
-1@@ -2,7 +2,7 @@ Description=Notify NFS peers of a restart DefaultDependencies=no Wants=network-online.target -After=local-fs.target network.target nss-lookup.target +After=local-fs.target network-online.target nss-lookup.target # if we run an nfs server, it needs to be running before we # tell clients that it has restarted.systemd/rpc-statd.service +1
-1@@ -4,7 +4,7 @@ DefaultDependencies=no Conflicts=umount.target Requires=nss-lookup.target rpcbind.socket Wants=network-online.target -After=nss-lookup.target rpcbind.socket +After=network-online.target nss-lookup.target rpcbind.socket PartOf=nfs-utils.service