Commits

Anonymous committed e012fc7 Merge
  • Participants
  • Parent commits 5647e56, 0acf1ad

Comments (0)

Files changed (7)

package/deb/vars.config

 {sasl_log_dir,      "/var/log/riaksearch/sasl"}.
 % vm.args
 {node,         "riak@127.0.0.1"}.
+{crash_dump,   "/var/log/riaksearch/erl_crash.dump"}.
 % bin/riak*
 {runner_script_dir,  "/usr/sbin"}.
 {runner_base_dir,    "/usr/lib/riaksearch"}.

package/rpm/SPECS/riak-search.spec

 {analyzer_port,     6095}.
 {sasl_error_log, "%{_localstatedir}/log/%{appname}/sasl-error.log"}.
 {sasl_log_dir, "%{_localstatedir}/log/%{appname}/sasl"}.
-{mapred_queue_dir, "%{_localstatedir}/lib/%{name}/mr_queue"}.
+{mapred_queue_dir, "%{_localstatedir}/lib/%{appname}/mr_queue"}.
 {map_js_vms,   8}.
 {reduce_js_vms, 6}.
 {hook_js_vms, 2}.
 % vm.args
 {node,         "riak@127.0.0.1"}.
+{crash_dump,   "%{_localstatedir}/log/%{appname}/erl_crash.dump"}.
 % bin/riak*
 {runner_script_dir,  "/usr/sbin"}.
 {runner_base_dir,    "%{riak_lib}"}.

rel/files/vm.args

 
 ## Enable memory instrumentation
 ##-instr
+
+## Set the location of crash dumps
+-env ERL_CRASH_DUMP {{crash_dump}}
 %% etc/vm.args
 %%
 {node,         "riaksearch@127.0.0.1"}.
+{crash_dump,   "log/erl_crash.dump"}.
 
 %%
 %% bin/riak

rel/vars/dev1_vars.config

 %% etc/vm.args
 %%
 {node,         "dev1@127.0.0.1"}.
+{crash_dump,   "log/erl_crash.dump"}.
 
 %%
 %% bin/riak

rel/vars/dev2_vars.config

 %% etc/vm.args
 %%
 {node,         "dev2@127.0.0.1"}.
+{crash_dump,   "log/erl_crash.dump"}.
 
 %%
 %% bin/riak

rel/vars/dev3_vars.config

 %% etc/vm.args
 %%
 {node,         "dev3@127.0.0.1"}.
+{crash_dump,   "log/erl_crash.dump"}.
 
 %%
 %% bin/riak