summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/nfs/server/src/nfs.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 001df8eeb9a..3291858efc0 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -641,15 +641,18 @@ init (xlator_t *this) {
ret = nfs_init_versions (nfs, this);
if (ret == -1) {
- gf_log (GF_NFS, GF_LOG_CRITICAL, "Failed to initialize "
+ gf_log (GF_NFS, GF_LOG_ERROR, "Failed to initialize "
"protocols");
+ /* Do not return an error on this. If we dont return
+ * an error, the process keeps running and it helps
+ * to point out where the log is by doing ps ax|grep gluster.
+ */
+ ret = 0;
goto err;
}
- ret = 0;
+ gf_log (GF_NFS, GF_LOG_INFO, "NFS service started");
err:
- if (ret == 0)
- gf_log (GF_NFS, GF_LOG_INFO, "NFS service started");
return ret;
}