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
1 changed files with 5 additions and 8 deletions

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