summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-18 17:25:27 +0000
committerAnand Avati <avati@gluster.com>2011-04-19 02:30:28 -0700
commit5a0d15682fb62d768ce088b5d9c9aad974a1460c (patch)
treec39030c8f1a912ccd8482a3751b46914fa4e0700 /xlators/mgmt/glusterd/src
parent0a38334bd3b21df2448a869760292c499c59bb0c (diff)
gsyncd service auto-discovery
If glusterd is running, gsyncd will find it out and adopt related settings automagically (even if started from not by glusterd) Signed-off-by: Csaba Henk <csaba@lowlife.hu> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2785 (gsyncd logs on slave side go to /dev/null) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2785
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 9048edc2602..4d98fafd7ee 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -238,6 +238,8 @@ configure_syncaemon (xlator_t *this, const char *workdir)
char cmd[4096] = {0,};
int blen = 0;
+ setenv ("_GLUSTERD_CALLED_", "1", 1);
+
snprintf (voldir, PATH_MAX, "%s/"GEOREP, workdir);
ret = mkdir (voldir, 0777);
if ((-1 == ret) && (errno != EEXIST)) {