summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index f85fe2babc6..4ef0bd17bc2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -866,6 +866,11 @@ glusterd_volume_stop_glusterfs (glusterd_volinfo_t *volinfo,
if (!file) {
gf_log ("", GF_LOG_ERROR, "Unable to open pidfile: %s",
pidfile);
+ if (errno == ENOENT) {
+ gf_log ("",GF_LOG_TRACE, "volume may not be running");
+ ret = 0;
+ goto out;
+ }
ret = -1;
goto out;
}