From 32dcea58f4ea4bf191063449e0e7040dc0a2ef19 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 9 Jul 2019 18:00:30 +0200 Subject: ... --- hel.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hel.nix b/hel.nix index 92bcc5d6..a4a6385b 100644 --- a/hel.nix +++ b/hel.nix @@ -150,10 +150,12 @@ ${pkgs.utillinux}/bin/mount --bind -n /etc/unbound /var/lib/unbound/etc/unbound fi ''; - serviceConfig.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 - ''); + serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" '' + #!${pkgs.stdenv}/bin/bash + + ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random + ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound + ''); }; services = { -- cgit v1.2.3