Skip to content

Commit

Permalink
nfsd.service: Do not require unbound.service
Browse files Browse the repository at this point in the history
We do require host name resolution on startup (otherwise the exports
won't work). However, a "Requires"-dependency on unbound.service is too
strong, because we don't want to restart nfsd when unbound ist
restarted. Reduce it to a "Wants" dependency.
  • Loading branch information
donald committed Jun 2, 2021
1 parent 1de1c2b commit 4d51488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc_systemd_units/nfsd.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[Unit]
Description=NFS Daemon
ConditionPathExists=/etc/exports
Requires=local-fs.target proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount unbound.service
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
Wants=unbound.service

[Service]
ExecStartPre=/bin/mkdir -p /var/lib/nfs/v4recovery
Expand Down

0 comments on commit 4d51488

Please sign in to comment.