summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-09-17 06:41:13 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-17 23:34:52 -0700
commitdbb2b3764c6f9cfeaeacd868e3167210017ba848 (patch)
tree86db5406ea07b232698fa7c8472b5f6af352e1cb /xlators/mgmt/glusterd/src/glusterd-utils.c
parent4e6fb304ce41acbaf7c9ba67c06bf443e65082e8 (diff)
reorganize /etc/glusterd/logs, add nfs log too
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1319 (gnfs support in gluster command line) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 845fcbbe9ad..ed4d7a32796 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -815,7 +815,7 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo,
brickinfo->hostname, exp_path);
if (!brickinfo->logfile) {
- snprintf (logfile, PATH_MAX, "%s/logs/%s.log",
+ snprintf (logfile, PATH_MAX, "%s/logs/bricks/%s.log",
priv->workdir, exp_path);
brickinfo->logfile = gf_strdup (logfile);
}
@@ -1567,6 +1567,7 @@ glusterd_nfs_server_start ()
xlator_t *this = NULL;
glusterd_conf_t *priv = NULL;
char pidfile[PATH_MAX] = {0,};
+ char logfile[PATH_MAX] = {0,};
char *volfile = NULL;
char path[PATH_MAX] = {0,};
char cmd_str[8192] = {0,};
@@ -1601,9 +1602,11 @@ glusterd_nfs_server_start ()
goto out;
}
+ snprintf (logfile, PATH_MAX, "%s/logs/nfs.log", priv->workdir);
+
snprintf (cmd_str, 8192,
- "%s/sbin/glusterfs -f %s -p %s",
- GFS_PREFIX, volfile, pidfile);
+ "%s/sbin/glusterfs -f %s -p %s -l %s",
+ GFS_PREFIX, volfile, pidfile, logfile);
ret = gf_system (cmd_str);
out: