Comparison

util/prosodyctl.lua @ 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
parent 7457:5e18416881bb
child 8634:f6f62c92b642
comparison
equal deleted inserted replaced
8122:e56a90168890 8123:bd591c5fc1bf
184 end 184 end
185 185
186 if type(pidfile) ~= "string" then 186 if type(pidfile) ~= "string" then
187 return false, "invalid-pidfile"; 187 return false, "invalid-pidfile";
188 end 188 end
189
190 pidfile = config.resolve_relative_path(prosody.paths.data, pidfile);
189 191
190 local modules_enabled = set.new(config.get("*", "modules_disabled")); 192 local modules_enabled = set.new(config.get("*", "modules_disabled"));
191 if prosody.platform ~= "posix" or modules_enabled:contains("posix") then 193 if prosody.platform ~= "posix" or modules_enabled:contains("posix") then
192 return false, "no-posix"; 194 return false, "no-posix";
193 end 195 end