Merge pull request #25009 from dermetfan/fix-znapzend-service

znapzend service: fix reload
This commit is contained in:
Michael Raskin 2017-05-01 13:24:24 +02:00 committed by GitHub
commit b28e2788e2

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 = ''
znapzend
'';
reload = ''
/bin/kill -HUP $MAINPID
'';
serviceConfig = {
ExecStart = "${pkgs.znapzend}/bin/znapzend";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
};
};
};