summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-09-28 05:17:27 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-28 04:50:33 -0700
commita381d3a29fc149d78aecba22fdb285314aa9b711 (patch)
treeb5014a9a960503b7ce9c3af3d06536bbf096a460 /xlators/mgmt/glusterd/src/glusterd.c
parenta89ec9419758b420ce11dddac27327ec34141da6 (diff)
glusterd: logs is a symlink to default var log dir
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1728 (glusterd log file location) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1728
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 0003fbef519..c9db4b09d8d 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -307,10 +307,10 @@ init (xlator_t *this)
}
snprintf (voldir, PATH_MAX, "%s/logs", dirname);
- ret = mkdir (voldir, 0777);
+ ret = symlink (DEFAULT_LOG_FILE_DIRECTORY, voldir);
if ((-1 == ret) && (errno != EEXIST)) {
gf_log (this->name, GF_LOG_CRITICAL,
- "Unable to create logs directory %s"
+ "Unable to create symlink to logs directory %s"
" ,errno = %d", voldir, errno);
exit (1);
}