diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-04-19 13:56:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 13:56:51 +0200 |
commit | 8174b447a2a4e515990dbf567ca53348977f2fb0 (patch) | |
tree | cb31e329c52dc449703397c668f76e44687514d8 /nixos/modules/services/backup | |
parent | 725b84be18907fb3c4ab00f3a0394c774d8ab67f (diff) |
znapsend: do not spawn a shell in the service
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/znapzend.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/nixos/modules/services/backup/znapzend.nix b/nixos/modules/services/backup/znapzend.nix index 6dd455cb75701..35c0308c9dc8c 100644 --- a/nixos/modules/services/backup/znapzend.nix +++ b/nixos/modules/services/backup/znapzend.nix @@ -20,15 +20,12 @@ in description = "ZnapZend - ZFS Backup System"; after = [ "zfs.target" ]; - path = with pkgs; [ znapzend zfs mbuffer openssh ]; + path = with pkgs; [ zfs mbuffer openssh ]; - script = '' - exec znapzend - ''; - - reload = '' - ${pkgs.coreutils}/bin/kill -HUP $MAINPID - ''; + serviceConfig = { + ExecStart = "${pkgs.znapzend}/bin/znapzend"; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + }; }; }; |