prosodyctl

changeset 3846
763df64fdd9d
parent 3630
e0c67b14d25f
child 3739
9ee223177319
equal deleted inserted replaced
3845:4860853fc97b 3846:763df64fdd9d
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)

mercurial