summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaurav Yadav <gyadav@redhat.com>2017-06-18 23:10:57 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-06-19 16:06:01 +0000
commit52d0886cfbcdfd69fa0cac0a6d51cd8811d8c6d7 (patch)
tree924c44c1157f358d7437787c739e4cdfd97dd077
parent61924b98a61108a7ec453fb7f1fc5487d1386e56 (diff)
glusterd.service (systemd), shows "Active failed" when gd in stop state
While doing cleanupandexit glusterd was handling the signal SIGTERM which is clean exit but systemd treats it as failure being a non-zero value. With this fix dependency "SuccessExitStatus " has been added in glusterd.service which takes care of service stop properly. Signed-off-by: Gaurav Yadav <gyadav@redhat.com> Change-Id: Ie5216722632a245f787fd69bfbbf8d0f0068bccb BUG: 1462200 Reviewed-on: https://review.gluster.org/17559 Tested-by: Gaurav Yadav <gyadav@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com>
-rw-r--r--extras/systemd/glusterd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/systemd/glusterd.service.in b/extras/systemd/glusterd.service.in
index 26694cfc8ab..78f8e40b0e4 100644
--- a/extras/systemd/glusterd.service.in
+++ b/extras/systemd/glusterd.service.in
@@ -12,6 +12,7 @@ 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
+SuccessExitStatus=15
[Install]
WantedBy=multi-user.target