diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-24 16:24:28 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-24 16:24:28 +0200 |
commit | afb5b682d198cb2517a5dc668436eb0547955cbc (patch) | |
tree | e84d6f3ec4c8d5d23b9a8c4c9e915b5632e6f77a | |
parent | a42e9137c5ad5b5e70a1449499dc397129c4be48 (diff) | |
download | prosody-afb5b682d198cb2517a5dc668436eb0547955cbc.tar.gz prosody-afb5b682d198cb2517a5dc668436eb0547955cbc.zip |
util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency with mod_posix)
-rw-r--r-- | util/prosodyctl.lua | 2 |
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"; |