Software /
code /
prosody
Comparison
prosodyctl @ 8668:31c5abd49dfe
prosodyctl, util.prosodyctl: Pass source path as a parameter instead of global variable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 22 Mar 2018 21:54:59 +0000 |
parent | 8652:03bb534593cb |
child | 8671:a4899174a894 |
comparison
equal
deleted
inserted
replaced
8667:a05d36075c6a | 8668:31c5abd49dfe |
---|---|
217 end | 217 end |
218 show_message("Prosody is already running with PID %s", ret or "(unknown)"); | 218 show_message("Prosody is already running with PID %s", ret or "(unknown)"); |
219 return 1; | 219 return 1; |
220 end | 220 end |
221 | 221 |
222 local ok, ret = prosodyctl.start(); | 222 local ok, ret = prosodyctl.start(prosody.paths.source); |
223 if ok then | 223 if ok then |
224 local daemonize = config.get("*", "daemonize"); | 224 local daemonize = config.get("*", "daemonize"); |
225 if daemonize == nil then | 225 if daemonize == nil then |
226 daemonize = prosody.installed; | 226 daemonize = prosody.installed; |
227 end | 227 end |