diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-21 20:53:23 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-21 20:53:23 +0000 |
commit | 7fbe2aaecb67e7e07828b98623740c152daf0f9e (patch) | |
tree | f5db8a2feb37a17c6e74121a038ab6fd78590834 | |
parent | 5f28d6b07178cacffca84504788eaf24e2383206 (diff) | |
parent | 9fad88be5d39df364cdbe9553697697bbc5e4d0e (diff) | |
download | prosody-7fbe2aaecb67e7e07828b98623740c152daf0f9e.tar.gz prosody-7fbe2aaecb67e7e07828b98623740c152daf0f9e.zip |
Merge with 0.7
-rwxr-xr-x | prosodyctl | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) |