# HG changeset patch # User Matthew Wild # Date 1292026474 0 # Node ID 763df64fdd9d306d2e225542fbf3e5c68cef65a5 # Parent 4860853fc97b80cfacf29285c4fe979693dc2574 prosodyctl: Make the 'restart' command start Prosody even if it wasn't already running diff -r 4860853fc97b -r 763df64fdd9d prosodyctl --- a/prosodyctl Fri Dec 10 00:23:47 2010 +0500 +++ b/prosodyctl Sat Dec 11 00:14:34 2010 +0000 @@ -509,11 +509,8 @@ return 1; end - local ret = commands.stop(arg); - if ret == 0 then - ret = commands.start(arg); - end - return ret; + commands.stop(arg); + return commands.start(arg); end -- ejabberdctl compatibility