summaryrefslogtreecommitdiff
path: root/packaging/standalone
diff options
context:
space:
mode:
authorAlvaro Videla <alvaro@rabbitmq.com>2012-11-16 15:19:23 +0100
committerAlvaro Videla <alvaro@rabbitmq.com>2012-11-16 15:19:23 +0100
commitc27f29a31c3e96aacc75740127db1a03e393dad7 (patch)
treeac18e8f262794599cfb601722bdda760faab66ee /packaging/standalone
parent797d6d77ef2ad6a483d91fa6e3e8fe65ccae3f70 (diff)
downloadrabbitmq-server-git-c27f29a31c3e96aacc75740127db1a03e393dad7.tar.gz
cleans up unused/duplicated functions
Diffstat (limited to 'packaging/standalone')
-rw-r--r--packaging/standalone/src/rabbit_release.erl18
1 files changed, 3 insertions, 15 deletions
diff --git a/packaging/standalone/src/rabbit_release.erl b/packaging/standalone/src/rabbit_release.erl
index a75695959c..877fd73ecd 100644
--- a/packaging/standalone/src/rabbit_release.erl
+++ b/packaging/standalone/src/rabbit_release.erl
@@ -15,7 +15,7 @@
%%
-module(rabbit_release).
--export([start/0, stop/0, make_tar/2]).
+-export([start/0]).
-include("rabbit.hrl").
@@ -75,10 +75,7 @@ start() ->
systools:script2boot(RootName),
%% Make release tarfile
make_tar(RootName, RabbitHome),
- terminate(0),
- ok.
-
-stop() ->
+ rabbit_misc:quit(0),
ok.
make_tar(Release, RabbitHome) ->
@@ -160,13 +157,4 @@ prepare_dir_plugin(PluginAppDescFn) ->
terminate(Fmt, Args) ->
io:format("ERROR: " ++ Fmt ++ "~n", Args),
- terminate(?ERROR_CODE).
-
-terminate(Status) ->
- case os:type() of
- {unix, _} -> halt(Status);
- {win32, _} -> init:stop(Status),
- receive
- after infinity -> ok
- end
- end.
+ rabbit_misc:quit(?ERROR_CODE).