From e62f52d28c0acb828280aca9eeb8e0e1f9e11103 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 9 Jul 2019 17:58:48 +0200 Subject: ... --- hel.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hel.nix b/hel.nix index bbb8c9a5..9b98f5ea 100644 --- a/hel.nix +++ b/hel.nix @@ -150,9 +150,10 @@ ${pkgs.utillinux}/bin/mount --bind -n /etc/unbound /var/lib/unbound/etc/unbound fi ''; - postStop = '' - ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound - ''; + ExecStopPost = lib.mkForce (pkgs.writeScript "unbound-exec-stop-post" '' + ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random + ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound + ''); }; services = { -- cgit v1.2.3