forked from mirrors/nixpkgs
znapsend: do not spawn a shell in the service
This commit is contained in:
parent
725b84be18
commit
8174b447a2
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue