glusterfs service: Ensure log directory exists for glustereventsd.

Prevents glustereventsd failing at startup in case it starts
before glusterd has started (whose `preStart` would also
create the needed directory).
This commit is contained in:
Niklas Hambüchen 2017-08-02 23:07:23 +02:00
parent e233a518bd
commit 08f7e4516c

View File

@ -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";