From 05030cae048470d8556c1f027df4919fdda2faf4 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Sat, 11 Dec 2010 00:14:34 +0000
Subject: prosodyctl: Make the 'restart' command start Prosody even if it
 wasn't already running

---
 prosodyctl | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'prosodyctl')

diff --git a/prosodyctl b/prosodyctl
index 8fa12807..94816c56 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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
-- 
cgit v1.2.3