From b2ae36b35f96ccc5d76474f48146a905c18ba3f6 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sun, 2 Jul 2023 14:27:24 +0200 Subject: [PATCH] nfsd.service: Remove redundant depdencies automount.service, which now is before basic.target, ist rather slow to start. nfsd.service doesn't need to wait for it, because we are not going to export automount paths. --- misc_systemd_units/nfsd.service | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/misc_systemd_units/nfsd.service b/misc_systemd_units/nfsd.service index 403382e2..6cfab997 100644 --- a/misc_systemd_units/nfsd.service +++ b/misc_systemd_units/nfsd.service @@ -1,8 +1,10 @@ [Unit] +DefaultDependencies=no ConditionPathExists=/etc/exports -Requires=local-fs.target proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount -After=local-fs.target proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount unbound.service mxmount.service -Wants=unbound.service +Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount +After=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount +After=sysinit.target +Conflicts=shutdown.target [Service] ExecStartPre=/bin/mkdir -p /var/lib/nfs/v4recovery