summaryrefslogtreecommitdiffstats
path: root/xlators
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
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')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-messages.h16
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c5
3 files changed, 22 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-messages.h b/xlators/mgmt/glusterd/src/glusterd-messages.h
index cd2c6f8e818..3752a05fa04 100644
--- a/xlators/mgmt/glusterd/src/glusterd-messages.h
+++ b/xlators/mgmt/glusterd/src/glusterd-messages.h
@@ -4549,6 +4549,22 @@
*/
#define GD_MSG_ROOT_SQUASH_FAILED (GLUSTERD_COMP_BASE + 563)
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction
+ *
+ */
+#define GD_MSG_SVC_START_SUCCESS (GLUSTERD_COMP_BASE + 564)
+
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction
+ *
+ */
+#define GD_MSG_SVC_STOP_SUCCESS (GLUSTERD_COMP_BASE + 565)
+
/*------------*/
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"
#endif /* !_GLUSTERD_MESSAGES_H_ */
diff --git a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
index 53092d35dbe..9f934629330 100644
--- a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
+++ b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
@@ -83,8 +83,8 @@ glusterd_proc_stop (glusterd_proc_t *proc, int sig, int flags)
proc->name);
goto out;
}
- gf_msg_debug (this->name, 0, "Stopping %s daemon running in pid: "
- "%d", proc->name, pid);
+ gf_msg (this->name, GF_LOG_INFO, 0, GD_MSG_SVC_STOP_SUCCESS,
+ "Stopping %s daemon running in pid: " "%d", proc->name, pid);
ret = kill (pid, sig);
if (ret) {
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);