diff options
author | emtenet <[email protected]> | 2016-04-16 13:09:58 +1000 |
---|---|---|
committer | emtenet <[email protected]> | 2016-04-29 22:01:08 +1000 |
commit | 77b8e9202715d526b1bae06b4a8a7882e501dfdc (patch) | |
tree | c3caa138a093a821001dd9532882792b8d0a471f /priv/templates/extended_bin_windows | |
parent | 1e15397a4924804f248facc18ccd07076baef7a4 (diff) | |
download | relx-77b8e9202715d526b1bae06b4a8a7882e501dfdc.tar.gz relx-77b8e9202715d526b1bae06b4a8a7882e501dfdc.tar.bz2 relx-77b8e9202715d526b1bae06b4a8a7882e501dfdc.zip |
Add a boot variable to Windows scripts
Add missing -boot_var argument to Windows scripts when starting erlang.
Use different boot variables on Windows vs non-Windows.
The built-in $ROOT boot variable points to the erts directory on Windows
(dictated by erl.ini [erlang] Rootdir=) and so a boot variable $RELEASE_DIR
is made pointing to the release directory
Diffstat (limited to 'priv/templates/extended_bin_windows')
-rw-r--r-- | priv/templates/extended_bin_windows | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows index 7adff36..51c1bb2 100644 --- a/priv/templates/extended_bin_windows +++ b/priv/templates/extended_bin_windows @@ -186,7 +186,8 @@ :: Start a console :console -@start "%rel_name% console" %werl% -boot "%boot_script%" %sys_config% ^ +@set boot=-boot "%boot_script%" -boot_var RELEASE_DIR "%release_root_dir%" +@start "%rel_name% console" %werl% %boot% %sys_config% ^ -args_file "%vm_args%" @goto :eof @@ -202,6 +203,7 @@ :: Attach to a running node :attach -@start "%node_name% attach" %werl% -boot "%clean_boot_script%" ^ +@set boot=-boot "%clean_boot_script%" -boot_var RELEASE_DIR "%release_root_dir%" +@start "%node_name% attach" %werl% %boot% ^ -remsh %node_name% %node_type% console -setcookie %cookie% @goto :eof |