aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Rascão <[email protected]>2017-11-20 17:26:56 +0000
committerGitHub <[email protected]>2017-11-20 17:26:56 +0000
commitc76c089b86e022a7544b4bf9ae964372c9f07e48 (patch)
tree27097606a23f6b7f4829f62e72b8d7ed16eb0980
parentcc30e7a73ac5c440acb1c75162720a8b319ac5f7 (diff)
parentfff13a5293c6f1407c71b6b286ff738f40cc25ec (diff)
downloadrelx-c76c089b86e022a7544b4bf9ae964372c9f07e48.tar.gz
relx-c76c089b86e022a7544b4bf9ae964372c9f07e48.tar.bz2
relx-c76c089b86e022a7544b4bf9ae964372c9f07e48.zip
Merge pull request #626 from ferd/windows-remote_console
Windows: support remote_console, fix attach
-rw-r--r--priv/templates/extended_bin_windows6
1 files changed, 4 insertions, 2 deletions
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows
index 5f22e4f..a8dfeb9 100644
--- a/priv/templates/extended_bin_windows
+++ b/priv/templates/extended_bin_windows
@@ -10,6 +10,7 @@
:: * ping - check if the node is running
:: * console - start the Erlang release in a `werl` Windows shell
:: * attach - connect to a running node and open an interactive console
+:: * remote_console - alias for attach
:: * list - display a listing of installed Erlang services
:: * usage - display available commands
@@ -91,6 +92,7 @@
@if "%1"=="ping" @goto ping
@if "%1"=="list" @goto list
@if "%1"=="attach" @goto attach
+@if "%1"=="remote_console" @goto attach
@if "%1"=="" @goto usage
@echo Unknown command: "%1"
@@ -155,7 +157,7 @@
:: Display usage information
:usage
-@echo usage: %~n0 ^(install^|uninstall^|start^|stop^|restart^|upgrade^|downgrade^|console^|ping^|list^|attach^)
+@echo usage: %~n0 ^(install^|uninstall^|start^|stop^|restart^|upgrade^|downgrade^|console^|ping^|list^|attach^|remote_console^)
@goto :eof
:: Install the release as a Windows service
@@ -221,5 +223,5 @@ set description=Erlang node %node_name% in %rootdir%
:attach
@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%
+ -remsh %node_name%@%hostname% %node_type% console -setcookie %cookie%
@goto :eof