aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-24 16:24:28 +0200
committerKim Alvefur <zash@zash.se>2017-04-24 16:24:28 +0200
commita18da188f66703d414664c24a7306e235024b194 (patch)
treee84d6f3ec4c8d5d23b9a8c4c9e915b5632e6f77a /util
parentc73ae7ef307fcf39df79059f1c709df3407edcc9 (diff)
downloadprosody-a18da188f66703d414664c24a7306e235024b194.tar.gz
prosody-a18da188f66703d414664c24a7306e235024b194.zip
util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency with mod_posix)
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 7c9a3c19..8ae051ae 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -187,6 +187,8 @@ local function getpid()
return false, "invalid-pidfile";
end
+ pidfile = config.resolve_relative_path(prosody.paths.data, pidfile);
+
local modules_enabled = set.new(config.get("*", "modules_disabled"));
if prosody.platform ~= "posix" or modules_enabled:contains("posix") then
return false, "no-posix";