Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 8883:3f975bbfec3b
util.prosodyctl: Rename variables for consistency (thanks Link Mauve)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 06 Jun 2018 22:27:40 +0200 |
parent | 8668:31c5abd49dfe |
child | 9781:161411a41377 |
child | 10720:6e46fefe956c |
comparison
equal
deleted
inserted
replaced
8882:a420b386a72a | 8883:3f975bbfec3b |
---|---|
188 return false, "invalid-pidfile"; | 188 return false, "invalid-pidfile"; |
189 end | 189 end |
190 | 190 |
191 pidfile = config.resolve_relative_path(prosody.paths.data, pidfile); | 191 pidfile = config.resolve_relative_path(prosody.paths.data, pidfile); |
192 | 192 |
193 local modules_enabled = set.new(config.get("*", "modules_disabled")); | 193 local modules_disabled = set.new(config.get("*", "modules_disabled")); |
194 if prosody.platform ~= "posix" or modules_enabled:contains("posix") then | 194 if prosody.platform ~= "posix" or modules_disabled:contains("posix") then |
195 return false, "no-posix"; | 195 return false, "no-posix"; |
196 end | 196 end |
197 | 197 |
198 local file, err = io.open(pidfile, "r+"); | 198 local file, err = io.open(pidfile, "r+"); |
199 if not file then | 199 if not file then |