comparison util/prosodyctl.lua @ 14128:0235fee459d0 13.0

util.prosodyctl: Don't check for mod_posix being disabled, it's deprecated
author Matthew Wild <mwild1@gmail.com>
date Thu, 16 Apr 2026 18:17:29 +0100
parents 2b3d49936518
children
comparison
equal deleted inserted replaced
14127:d666e7cd8609 14128:0235fee459d0
12 local stringprep = encodings.stringprep; 12 local stringprep = encodings.stringprep;
13 local storagemanager = require "prosody.core.storagemanager"; 13 local storagemanager = require "prosody.core.storagemanager";
14 local usermanager = require "prosody.core.usermanager"; 14 local usermanager = require "prosody.core.usermanager";
15 local interpolation = require "prosody.util.interpolation"; 15 local interpolation = require "prosody.util.interpolation";
16 local signal = require "prosody.util.signal"; 16 local signal = require "prosody.util.signal";
17 local set = require "prosody.util.set";
18 local path = require"prosody.util.paths"; 17 local path = require"prosody.util.paths";
19 local lfs = require "lfs"; 18 local lfs = require "lfs";
20 local type = type; 19 local type = type;
21 20
22 local have_socket_unix, socket_unix = pcall(require, "socket.unix"); 21 local have_socket_unix, socket_unix = pcall(require, "socket.unix");
132 return false, "invalid-pidfile"; 131 return false, "invalid-pidfile";
133 end 132 end
134 133
135 pidfile = config.resolve_relative_path(prosody.paths.data, pidfile); 134 pidfile = config.resolve_relative_path(prosody.paths.data, pidfile);
136 135
137 local modules_disabled = set.new(config.get("*", "modules_disabled")); 136 if prosody.platform ~= "posix" then
138 if prosody.platform ~= "posix" or modules_disabled:contains("posix") then
139 return false, "no-posix"; 137 return false, "no-posix";
140 end 138 end
141 139
142 local file, err = io.open(pidfile, "r+"); 140 local file, err = io.open(pidfile, "r+");
143 if not file then 141 if not file then