util/prosodyctl.lua

changeset 2457
102c81e37878
parent 2446
62aa1b465e05
child 2925
692b3c6c5bd2
--- a/util/prosodyctl.lua	Wed Jan 13 00:03:22 2010 +0000
+++ b/util/prosodyctl.lua	Wed Jan 13 00:04:38 2010 +0000
@@ -65,7 +65,7 @@
 		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

mercurial