Skip to content

Commit

Permalink
nfsd.service: Remove redundant depdencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Jul 3, 2023
1 parent 3fc7638 commit e561e21
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions misc_systemd_units/nfsd.service
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e561e21

Please sign in to comment.