basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

Don't create log directory and empty crash.log under PWD #185

Closed shino closed 8 years ago

shino commented 9 years ago

Executing cuttlefish escript creates empty log/crash.log file under working directory.

% ls
Makefile  README.md  cuttlefish  deps  ebin  priv  rebar  rebar.config  src  test  test_fixtures  tools.mk
% ./cuttlefish -h
Usage: ./cuttlefish [-h] [-e <etc_dir>] [-d <dest_dir>] [-f <dest_file>] [-s <schema_dir>] [-i <schema_file>] [-c <conf_file>] [-a <app_config>] [-l <log_level>] [-p] [-m <max_history>]
[snip more output]
% ls
Makefile  README.md  cuttlefish  deps  ebin  log  priv  rebar  rebar.config  src  test  test_fixtures  tools.mk

Background:

After installing riak-cs package and execute riak-cs start, there is a file /usr/lib/riak-cs/log/crash.log. It is almost harmless but unconfortable because /usr/lib/riak-cs/ is usually considered as read only.

shino commented 8 years ago

@borshop merge