Skip to content

Commit

Permalink
glusterfs service: Ensure log directory exists for glustereventsd.
Browse files Browse the repository at this point in the history
Prevents glustereventsd failing at startup in case it starts
before glusterd has started (whose `preStart` would also
create the needed directory).
  • Loading branch information
nh2 committed Sep 27, 2017
1 parent e233a51 commit 08f7e45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nixos/modules/services/network-filesystems/glusterfs.nix
Expand Up @@ -194,6 +194,10 @@ in

after = [ "syslog.target" "network.target" ];

preStart = ''
install -m 0755 -d /var/log/glusterfs
'';

serviceConfig = {
Type="simple";
Environment="PYTHONPATH=${glusterfs}/usr/lib/python2.7/site-packages";
Expand Down

0 comments on commit 08f7e45

Please sign in to comment.