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 4d2c68ee..7ce6c513 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