Merge pull request #25009 from dermetfan/fix-znapzend-service
znapzend service: fix reload
This commit is contained in:
commit
b28e2788e2
|
@ -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 = {
|
||||||
znapzend
|
ExecStart = "${pkgs.znapzend}/bin/znapzend";
|
||||||
'';
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
|
};
|
||||||
reload = ''
|
|
||||||
/bin/kill -HUP $MAINPID
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue