diff options
author | Poornima G <pgurusid@redhat.com> | 2017-10-10 14:45:03 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2017-10-18 14:15:05 +0000 |
commit | 77271e9c1efab628d00bc66803be923f451c0bfa (patch) | |
tree | 4e4183568a2fdda702ae5cdcd4624a53fc39b1cf /xlators/mgmt/glusterd/src/glusterd-sm.c | |
parent | e848410ab6d13871be6b57101788ea5183efe75c (diff) |
gfproxyd: Let glusterd manage gfproxy daemon
Updates: #242
BUG: 1428063
Change-Id: Iaaf2edf99b2ecc75f6d30762c752a6d445c1c826
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-sm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.c b/xlators/mgmt/glusterd/src/glusterd-sm.c index f83e8519ad9..18e5e5a3800 100644 --- a/xlators/mgmt/glusterd/src/glusterd-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-sm.c @@ -34,6 +34,7 @@ #include "glusterd-svc-helper.h" #include "glusterd-snapshot-utils.h" #include "glusterd-server-quorum.h" +#include "glusterd-gfproxyd-svc-helper.h" char local_node_hostname[PATH_MAX] = {0, }; @@ -745,6 +746,17 @@ glusterd_peer_detach_cleanup (glusterd_conf_t *priv) "to stop tierd daemon service"); } } + + if (glusterd_is_gfproxyd_enabled (volinfo)) { + svc = &(volinfo->gfproxyd.svc); + ret = svc->stop (svc, SIGTERM); + if (ret) { + gf_msg (THIS->name, GF_LOG_ERROR, 0, + GD_MSG_SVC_STOP_FAIL, "Failed " + "to stop gfproxyd daemon service"); + } + } + ret = glusterd_cleanup_snaps_for_volume (volinfo); if (ret) { gf_msg (THIS->name, GF_LOG_ERROR, 0, |