aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/prosodyctl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index dafc7118..0776fc76 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -65,7 +65,7 @@ function getpid()
return false, "no-pidfile";
end
- local file, err = io.open(pidfile, "w");
+ local file, err = io.open(pidfile, "r+");
if not file then
return false, "pidfile-read-failed", err;
end