Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 5379:27de7cc94111
util.{prosodyctl,openssl}: More use of config sections removed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 02:38:30 +0100 |
parent | 5102:ae8a993b598d |
child | 5524:e9090966c803 |
comparison
equal
deleted
inserted
replaced
5378:ec3accda44d3 | 5379:27de7cc94111 |
---|---|
180 | 180 |
181 return usermanager.delete_user(user, host); | 181 return usermanager.delete_user(user, host); |
182 end | 182 end |
183 | 183 |
184 function getpid() | 184 function getpid() |
185 local pidfile = config.get("*", "core", "pidfile"); | 185 local pidfile = config.get("*", "pidfile"); |
186 if not pidfile then | 186 if not pidfile then |
187 return false, "no-pidfile"; | 187 return false, "no-pidfile"; |
188 end | 188 end |
189 | 189 |
190 local modules_enabled = set.new(config.get("*", "core", "modules_enabled")); | 190 local modules_enabled = set.new(config.get("*", "modules_enabled")); |
191 if not modules_enabled:contains("posix") then | 191 if not modules_enabled:contains("posix") then |
192 return false, "no-posix"; | 192 return false, "no-posix"; |
193 end | 193 end |
194 | 194 |
195 local file, err = io.open(pidfile, "r+"); | 195 local file, err = io.open(pidfile, "r+"); |