summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-07-06 11:49:31 +0530
committerKrishnan Parthasarathi <kparthas@redhat.com>2015-07-14 11:38:38 -0700
commit796062f8d8bec2d6fff5ddac4f529814ec982dfb (patch)
tree74947377000ef0c2986e4f12efe11a285b9fdd60 /xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c
parent2ca64411fd134eb03fc8b40dec91e94027ad82b1 (diff)
glusterd: daemons start/stop should be logged in INFO
Change-Id: I81ceba4b7110140aec790659fcac90403c8e3869 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/11538 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c
index 04096a4a116..2457c91ed2b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c
+++ b/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c
@@ -203,7 +203,8 @@ glusterd_svc_start (glusterd_svc_t *svc, int flags, dict_t *cmdline)
if (cmdline)
dict_foreach (cmdline, svc_add_args, (void *) &runner);
- gf_msg_debug (this->name, 0, "Starting %s service", svc->name);
+ gf_msg (this->name, GF_LOG_INFO, 0, GD_MSG_SVC_START_SUCCESS,
+ "Starting %s service", svc->name);
if (flags == PROC_START_NO_WAIT) {
ret = runner_run_nowait (&runner);
@@ -234,6 +235,8 @@ int glusterd_svc_stop (glusterd_svc_t *svc, int sig)
svc->online = _gf_false;
(void) glusterd_unlink_file ((char *)svc->conn.sockpath);
}
+ gf_msg (THIS->name, GF_LOG_INFO, 0, GD_MSG_SVC_STOP_SUCCESS,
+ "%s service is stopped", svc->name);
out:
gf_msg_debug (THIS->name, 0, "Returning %d", ret);