Sean Cribbs avatar Sean Cribbs committed 0acf1ad

BZ997: Put erl_crash.dump in a sane, writeable place for each platform.

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.