Browse Source

fix mad start/attach

Namdak Tonpa 10 years ago
parent
commit
4fa29c0f29
3 changed files with 3 additions and 3 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 2 2
      src/mad_run.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"1cbb25").
+-define(VERSION,"ce7201").

BIN
mad


+ 2 - 2
src/mad_run.erl

@@ -1,8 +1,8 @@
 -module(mad_run).
 -compile(export_all).
 
-start(_) ->
-    {_,Status,X} = sh:run("run_erl",["-daemon",".devbox/",".devbox/logs/","exec mad rep"],
+start(_) ->                            % run_dir > < log_dir
+    {_,Status,X} = sh:run("run_erl",["-daemon",".",".","exec mad rep"],
       binary,".",
         [{"RUN_ERL_LOG_GENERATIONS","1000"},
          {"RUN_ERL_LOG_MAXSIZE","20000000"},