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>
This commit is contained in:
anand 2015-09-15 12:05:51 +05:30 committed by Niels de Vos
parent 26917cb3bb
commit 63e3806ba3

View File

@ -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]