Software /
code /
prosody
Changeset
8123:bd591c5fc1bf
util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency with mod_posix)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Apr 2017 16:24:28 +0200 |
parents | 8122:e56a90168890 |
children | 8124:20e92f6688b2 |
files | util/prosodyctl.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl.lua Mon Apr 24 15:53:26 2017 +0200 +++ b/util/prosodyctl.lua Mon Apr 24 16:24:28 2017 +0200 @@ -187,6 +187,8 @@ 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";