equal
deleted
inserted
replaced
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) |