prosodyctl: Make the 'restart' command start Prosody even if it wasn't already running
authorMatthew Wild <mwild1@gmail.com>
Sat, 11 Dec 2010 00:14:34 +0000 (00:14 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sat, 11 Dec 2010 00:14:34 +0000 (00:14 +0000)
prosodyctl

index 8fa12807d1832db705e9decd9e1e16f9d268fa51..94816c56da70eee9882195eabb35e215aa04a7b1 100755 (executable)
@@ -509,11 +509,8 @@ function commands.restart(arg)
                return 1;
        end
        
-       local ret = commands.stop(arg);
-       if ret == 0 then
-               ret = commands.start(arg);
-       end
-       return ret;
+       commands.stop(arg);
+       return commands.start(arg);
 end
 
 -- ejabberdctl compatibility