# HG changeset patch # User Matthew Wild # Date 1266785574 0 # Node ID cb5acafbec62b04f3803423df44a8bb246a8861a # Parent a6d80b6e9ee1a228c0d096c6f00e8917679fbdc9 prosodyctl: Add restart command for KSid and johnny :) diff -r a6d80b6e9ee1 -r cb5acafbec62 prosodyctl --- a/prosodyctl Sun Feb 21 17:33:13 2010 +0000 +++ b/prosodyctl Sun Feb 21 20:52:54 2010 +0000 @@ -433,6 +433,19 @@ return 1; end +function commands.restart(arg) + if arg[1] == "--help" then + show_usage([[stop]], [[Stop and start a running Prosody server]]); + return 1; + end + + local ret = commands.stop(arg); + if ret == 0 then + ret = commands.start(arg); + end + return ret; +end + -- ejabberdctl compatibility function commands.register(arg)