projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3418edb
)
prosodyctl: Make the 'restart' command start Prosody even if it wasn't already running
author
Matthew Wild
<mwild1@gmail.com>
Sat, 11 Dec 2010 00:14:34 +0000
(
00:14
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sat, 11 Dec 2010 00:14:34 +0000
(
00:14
+0000)
prosodyctl
patch
|
blob
|
history
diff --git
a/prosodyctl
b/prosodyctl
index 8fa12807d1832db705e9decd9e1e16f9d268fa51..94816c56da70eee9882195eabb35e215aa04a7b1 100755
(executable)
--- a/
prosodyctl
+++ b/
prosodyctl
@@
-509,11
+509,8
@@
function commands.restart(arg)
return 1;
end
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
end
-- ejabberdctl compatibility