summaryrefslogtreecommitdiff
path: root/packaging/standalone/src/rabbit_release.erl
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
commit7d94f4241fcb354c60aed2b50d6a08fb192d9191 (patch)
treeac18e8f262794599cfb601722bdda760faab66ee /packaging/standalone/src/rabbit_release.erl
parent73110798abe6b3ca4a1091f8597d0a09d9a07026 (diff)
downloadrabbitmq-server-7d94f4241fcb354c60aed2b50d6a08fb192d9191.tar.gz
cleans up unused/duplicated functions
Diffstat (limited to 'packaging/standalone/src/rabbit_release.erl')
-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 a7569595..877fd73e 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).