Comparison

prosodyctl @ 2705:8a5af6f14c07

prosodyctl: Fix 'restart' command to not report itself as the 'stop' command (thanks albert!)
author Matthew Wild <mwild1@gmail.com>
date Mon, 22 Feb 2010 01:47:35 +0000
parent 2696:cb5acafbec62
child 2706:c2dde8bda3fe
comparison
equal deleted inserted replaced
2703:bd134aa85fa9 2705:8a5af6f14c07
433 return 1; 433 return 1;
434 end 434 end
435 435
436 function commands.restart(arg) 436 function commands.restart(arg)
437 if arg[1] == "--help" then 437 if arg[1] == "--help" then
438 show_usage([[stop]], [[Stop and start a running Prosody server]]); 438 show_usage([[restart]], [[Restart a running Prosody server]]);
439 return 1; 439 return 1;
440 end 440 end
441 441
442 local ret = commands.stop(arg); 442 local ret = commands.stop(arg);
443 if ret == 0 then 443 if ret == 0 then