summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authoranand <anekkunt@redhat.com>2015-09-15 12:05:51 +0530
committerNiels de Vos <ndevos@redhat.com>2015-09-15 06:08:38 -0700
commit63e3806ba3c4d5f196ad2254f63d85b79602705a (patch)
treef5b721504dbf8456210285ad929a047af85f5cf7 /extras
parent26917cb3bb476e6b2452405baa5698f7fb01ceda (diff)
systemd/spec/glusterd: Adding EnvironmentFile in glusterd systemctrl service file.
Issue: glusterd was not running in debug mode, this is because of "systemctrl start glusterd" was not reading configuration from glusterd-sysconfig file. Fix: Set glusterd-sysconfig file as "EnvironmentFile" and pass args to glusterd. Change-Id: I6a032a2e86e5a25c39199ddf953bfbd6590d53b6 BUG: 1263087 Signed-off-by: anand <anekkunt@redhat.com> Reviewed-on: http://review.gluster.org/12175 Reviewed-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/systemd/glusterd.service.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/systemd/glusterd.service.in b/extras/systemd/glusterd.service.in
index a5d260d86e7..5f962a6d2a4 100644
--- a/extras/systemd/glusterd.service.in
+++ b/extras/systemd/glusterd.service.in
@@ -7,7 +7,9 @@ Before=network-online.target
Type=forking
PIDFile=@localstatedir@/run/glusterd.pid
LimitNOFILE=65536
-ExecStart=@prefix@/sbin/glusterd -p @localstatedir@/run/glusterd.pid
+Environment="LOG_LEVEL=INFO"
+EnvironmentFile=-@sysconfdir@/sysconfig/glusterd
+ExecStart=@prefix@/sbin/glusterd -p @localstatedir@/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS
KillMode=process
[Install]