From 4d514880e7db435df3d8ac5a32aa853119f88862 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 1 Jun 2021 15:42:33 +0200 Subject: [PATCH] nfsd.service: Do not require unbound.service 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. --- misc_systemd_units/nfsd.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc_systemd_units/nfsd.service b/misc_systemd_units/nfsd.service index 7270763..c1b8ecc 100644 --- a/misc_systemd_units/nfsd.service +++ b/misc_systemd_units/nfsd.service @@ -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