3
0
Fork 0
forked from mirrors/nixpkgs

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";
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";
};
};
};