glusterfs service: Copy hooks to /var at startup.
This is where glusterfs expects them; see also https://github.com/gluster/glusterfs/blob/v3.10.1/extras/hook-scripts/Makefile.am#L4 Also see upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761
This commit is contained in:
parent
01bbdae2fe
commit
ff4eb1eaa6
@ -3,7 +3,7 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) glusterfs;
|
inherit (pkgs) glusterfs rsync;
|
||||||
|
|
||||||
cfg = config.services.glusterfs;
|
cfg = config.services.glusterfs;
|
||||||
|
|
||||||
@ -50,8 +50,11 @@ in
|
|||||||
after = [ "rpcbind.service" "network.target" "local-fs.target" ];
|
after = [ "rpcbind.service" "network.target" "local-fs.target" ];
|
||||||
before = [ "network-online.target" ];
|
before = [ "network-online.target" ];
|
||||||
|
|
||||||
|
# The copying of hooks is due to upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761
|
||||||
preStart = ''
|
preStart = ''
|
||||||
install -m 0755 -d /var/log/glusterfs
|
install -m 0755 -d /var/log/glusterfs
|
||||||
|
mkdir -p /var/lib/glusterd/hooks/
|
||||||
|
${rsync}/bin/rsync -a ${glusterfs}/var/lib/glusterd/hooks/ /var/lib/glusterd/hooks/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user