# Use environment configuration file for glusterd.
# Closes: #1002799

diff -Naur glusterfs-10.0.orig/extras/systemd/glusterd.service.in glusterfs-10.0/extras/systemd/glusterd.service.in
--- glusterfs-10.0.orig/extras/systemd/glusterd.service.in	2021-12-29 09:03:17.000000000 +0100
+++ glusterfs-10.0/extras/systemd/glusterd.service.in	2021-12-29 09:21:38.143669524 +0100
@@ -12,7 +12,7 @@
 PIDFile=/run/glusterd.pid
 LimitNOFILE=65536
 Environment="LOG_LEVEL=INFO"
-EnvironmentFile=-@SYSCONF_DIR@/sysconfig/glusterd
+EnvironmentFile=-/etc/default/glusterd
 ExecStart=@prefix@/sbin/glusterd -p @localstatedir@/run/glusterd.pid  --log-level $LOG_LEVEL $GLUSTERD_OPTIONS
 KillMode=control-group
 TimeoutSec=300
