# HG changeset patch # User Kim Alvefur # Date 1493043868 -7200 # Node ID bd591c5fc1bf87a06149440e7c6b1c574fc5ee26 # Parent e56a90168890123f4774cac918f0438693532b79 util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency with mod_posix) diff -r e56a90168890 -r bd591c5fc1bf util/prosodyctl.lua --- 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";