Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 6062:6cc6b4d407df
prosodyctl, util.prosodyctl: Update to reflect that mod_posix gets loaded by default on posix platforms
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 10 Apr 2014 00:24:29 +0200 |
parent | 5776:bd0ff8ae98a8 |
child | 6367:769a3577dd85 |
comparison
equal
deleted
inserted
replaced
6061:1056ea08970f | 6062:6cc6b4d407df |
---|---|
187 local pidfile = config.get("*", "pidfile"); | 187 local pidfile = config.get("*", "pidfile"); |
188 if not pidfile then | 188 if not pidfile then |
189 return false, "no-pidfile"; | 189 return false, "no-pidfile"; |
190 end | 190 end |
191 | 191 |
192 local modules_enabled = set.new(config.get("*", "modules_enabled")); | 192 local modules_enabled = set.new(config.get("*", "modules_disabled")); |
193 if not modules_enabled:contains("posix") then | 193 if prosody.platform ~= "posix" or modules_enabled:contains("posix") then |
194 return false, "no-posix"; | 194 return false, "no-posix"; |
195 end | 195 end |
196 | 196 |
197 local file, err = io.open(pidfile, "r+"); | 197 local file, err = io.open(pidfile, "r+"); |
198 if not file then | 198 if not file then |