Commits

Jacob Perkins committed c132174

appup fixes

  • Participants
  • Parent commits 8686a5c

Comments (0)

Files changed (2)

File ebin/emongo.appup

 		{load_module, emongo},
 		{load_module, emongo_app},
 		{load_module, emongo_server},
-		{load_module, emongo_sup},
 		{add_module, emongo_server_sup},
-		{restart_application, emongo}
+		{update, emongo_sup, supervisor},
+		{apply, {supervisor, terminate_child, [emongo_sup, emongo]}},
+		{apply, {supervisor, restart_child, [emongo_sup, emongo]}},
+		{apply, {emongo_app, initialize_pools, []}}
 	]}
 ], [
 	{"0.0.2", [
 		{load_module, emongo},
 		{load_module, emongo_app},
 		{load_module, emongo_server},
-		{load_module, emongo_sup},
 		{delete_module, emongo_server_sup},
-		{restart_application, emongo}
+		{update, emongo_sup, supervisor},
+		{apply, {supervisor, terminate_child, [emongo_sup, emongo]}},
+		{apply, {supervisor, restart_child, [emongo_sup, emongo]}}
 	]}
 ]}.

File src/emongo_app.erl

 
 -include("emongo.hrl").
 
--export([start/2, stop/1]).
+-export([start/2, stop/1, initialize_pools/0]).
 
 start(_, _) ->
 	{ok, Pid} = emongo_sup:start_link(),