Software /
code /
prosody
Comparison
prosodyctl @ 3724:c12ebbd4ab61
prosodyctl: Make the 'restart' command start Prosody even if it wasn't already running
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 11 Dec 2010 00:14:34 +0000 |
parent | 3630:e0c67b14d25f |
child | 3739:9ee223177319 |
comparison
equal
deleted
inserted
replaced
3723:72a917d910a4 | 3724:c12ebbd4ab61 |
---|---|
507 if arg[1] == "--help" then | 507 if arg[1] == "--help" then |
508 show_usage([[restart]], [[Restart a running Prosody server]]); | 508 show_usage([[restart]], [[Restart a running Prosody server]]); |
509 return 1; | 509 return 1; |
510 end | 510 end |
511 | 511 |
512 local ret = commands.stop(arg); | 512 commands.stop(arg); |
513 if ret == 0 then | 513 return commands.start(arg); |
514 ret = commands.start(arg); | |
515 end | |
516 return ret; | |
517 end | 514 end |
518 | 515 |
519 -- ejabberdctl compatibility | 516 -- ejabberdctl compatibility |
520 | 517 |
521 function commands.register(arg) | 518 function commands.register(arg) |