From 8174b447a2a4e515990dbf567ca53348977f2fb0 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Wed, 19 Apr 2017 13:56:51 +0200 Subject: znapsend: do not spawn a shell in the service --- nixos/modules/services/backup/znapzend.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'nixos/modules/services/backup/znapzend.nix') 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"; + }; }; }; -- cgit 1.4.1