Thu, 02 Jul 2009 04:53:31 +0100
prosodyctl: Use prosodyctl_timeout option if it exists in the config
prosodyctl | file | annotate | diff | comparison | revisions |
--- a/prosodyctl Thu Jul 02 04:43:08 2009 +0100 +++ b/prosodyctl Thu Jul 02 04:53:31 2009 +0100 @@ -164,6 +164,8 @@ end return password; end + +local prosodyctl_timeout = (config.get("*", "core", "prosodyctl_timeout") or 5) * 2; ----------------------- local commands = {}; local command = arg[1]; @@ -300,7 +302,7 @@ break; elseif i == 5 then show_message("Still waiting..."); - elseif i >= 10 then + elseif i >= prosodyctl_timeout then show_message("Prosody is still not running. Please give it some time or check your log files for errors."); return 2; end @@ -370,7 +372,7 @@ break; elseif i == 5 then show_message("Still waiting..."); - elseif i >= 10 then + elseif i >= prosodyctl_timeout then show_message("Prosody is still running. Please give it some time or check your log files for errors."); return 2; end