aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2016-05-28 07:46:10 -0500
committerTristan Sloughter <[email protected]>2016-05-28 07:46:10 -0500
commit38bf6186db7518e5b2eae9b51cc1096362697128 (patch)
tree75234968907c513832ff2fb4811ac6bb503cecdc
parent5cb85fa9d1fdb5988faf178676fd36a0c2829a9d (diff)
parent0f92352b7a3ef2bbec571c3bf2457baa1d3f8017 (diff)
downloadrelx-38bf6186db7518e5b2eae9b51cc1096362697128.tar.gz
relx-38bf6186db7518e5b2eae9b51cc1096362697128.tar.bz2
relx-38bf6186db7518e5b2eae9b51cc1096362697128.zip
Merge pull request #484 from ferd/fix-init-start-in-windows
install and start release in Windows 7/XP
-rw-r--r--priv/templates/extended_bin_windows6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows
index 7adff36..159bace 100644
--- a/priv/templates/extended_bin_windows
+++ b/priv/templates/extended_bin_windows
@@ -142,11 +142,11 @@
:: Install the release as a Windows service
:: or install the specified version passed as argument
:install
+set args=%erl_opts% -setcookie %cookie% ++ -rootdir \"%rootdir%\"
+set start_erl=%erts_dir%\bin\start_erl.exe
+set description=Erlang node %node_name% in %rootdir%
@if "" == "%2" (
:: Install the service
- set args=%erl_opts% -setcookie %cookie% ++ -rootdir \"%rootdir%\"
- set start_erl=%erts_dir%\bin\start_erl.exe
- set description=Erlang node %node_name% in %rootdir%
%erlsrv% add %service_name% %node_type% "%node_name%" -c "%description%" ^
-w "%rootdir%" -m "%start_erl%" -args "%args%" ^
-stopaction "init:stop()."