znapsend: do not spawn a shell in the service

This commit is contained in:
Jörg Thalheim 2017-04-19 13:56:51 +02:00 committed by GitHub
parent 725b84be18
commit 8174b447a2

View File

@ -20,15 +20,12 @@ in
description = "ZnapZend - ZFS Backup System"; description = "ZnapZend - ZFS Backup System";
after = [ "zfs.target" ]; after = [ "zfs.target" ];
path = with pkgs; [ znapzend zfs mbuffer openssh ]; path = with pkgs; [ zfs mbuffer openssh ];
script = '' serviceConfig = {
exec znapzend ExecStart = "${pkgs.znapzend}/bin/znapzend";
''; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
};
reload = ''
${pkgs.coreutils}/bin/kill -HUP $MAINPID
'';
}; };
}; };