From 9fad88be5d39df364cdbe9553697697bbc5e4d0e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 21 Feb 2010 20:52:54 +0000 Subject: prosodyctl: Add restart command for KSid and johnny :) --- prosodyctl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 9d2df69e..676085ee 100755 --- a/prosodyctl +++ b/prosodyctl @@ -433,6 +433,19 @@ function commands.stop(arg) 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) -- cgit v1.2.3