diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-07-09 18:00:30 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-07-09 18:00:30 +0200 |
commit | 32dcea58f4ea4bf191063449e0e7040dc0a2ef19 (patch) | |
tree | 5a73019a2ccda1febb12277faf13613eb89dd20c | |
parent | 2c8ebfef5194e665f0e8f6dc868870ad7f5dc8f1 (diff) | |
download | nixos-32dcea58f4ea4bf191063449e0e7040dc0a2ef19.tar nixos-32dcea58f4ea4bf191063449e0e7040dc0a2ef19.tar.gz nixos-32dcea58f4ea4bf191063449e0e7040dc0a2ef19.tar.bz2 nixos-32dcea58f4ea4bf191063449e0e7040dc0a2ef19.tar.xz nixos-32dcea58f4ea4bf191063449e0e7040dc0a2ef19.zip |
...
-rw-r--r-- | hel.nix | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -150,10 +150,12 @@ | |||
150 | ${pkgs.utillinux}/bin/mount --bind -n /etc/unbound /var/lib/unbound/etc/unbound | 150 | ${pkgs.utillinux}/bin/mount --bind -n /etc/unbound /var/lib/unbound/etc/unbound |
151 | fi | 151 | fi |
152 | ''; | 152 | ''; |
153 | serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unbound-exec-stop-post" '' | 153 | serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" '' |
154 | ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random | 154 | #!${pkgs.stdenv}/bin/bash |
155 | ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound | 155 | |
156 | ''); | 156 | ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random |
157 | ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound | ||
158 | ''); | ||
157 | }; | 159 | }; |
158 | 160 | ||
159 | services = { | 161 | services = { |