Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removes Windows-specific scripts as they are out of touch anyway

  • Loading branch information...
commit ac4df3408f1732b04840a593f011cbe0fff69a6c 1 parent 9260797
Yurii Rashkovskii authored
View
56 rel/files/htoad.cmd
@@ -1,56 +0,0 @@
-@setlocal
-
-@set node_name=htoad
-
-@rem Get the abolute path to the parent directory,
-@rem which is assumed to be the node root.
-@for /F "delims=" %%I in ("%~dp0..") do @set node_root=%%~fI
-
-@set releases_dir=%node_root%\releases
-
-@rem Parse ERTS version and release version from start_erl.data
-@for /F "tokens=1,2" %%I in (%releases_dir%\start_erl.data) do @(
- @call :set_trim erts_version %%I
- @call :set_trim release_version %%J
-)
-
-@set erts_bin=%node_root%\erts-%erts_version%\bin
-
-@set service_name=%node_name%_%release_version%
-
-@if "%1"=="install" @goto install
-@if "%1"=="uninstall" @goto uninstall
-@if "%1"=="start" @goto start
-@if "%1"=="stop" @goto stop
-@if "%1"=="restart" @call :stop && @goto start
-@if "%1"=="console" @goto console
-@rem TODO: attach, ping, restart and reboot
-
-:usage
-@echo Usage: %0 {install|uninstall|start|stop|restart|console}
-@goto :EOF
-
-:install
-@%erts_bin%\erlsrv.exe add %service_name% -c "Erlang node %node_name% in %node_root%" -sname %node_name% -w %node_root% -m %node_root%\bin\start_erl.cmd -args " ++ %node_name% ++ %node_root%" -stopaction "init:stop()."
-@goto :EOF
-
-:uninstall
-@%erts_bin%\erlsrv.exe remove %service_name%
-@%erts_bin%\epmd.exe -kill
-@goto :EOF
-
-:start
-@%erts_bin%\erlsrv.exe start %service_name%
-@goto :EOF
-
-:stop
-@%erts_bin%\erlsrv.exe stop %service_name%
-@goto :EOF
-
-:console
-@start %erts_bin%\werl.exe -boot %releases_dir%\%release_version%\%node_name%
-@goto :EOF
-
-:set_trim
-@set %1=%2
-@goto :EOF
View
39 rel/files/start_erl.cmd
@@ -1,39 +0,0 @@
-@setlocal
-
-@rem Parse arguments. erlsrv.exe prepends erl arguments prior to first ++.
-@rem Other args are position dependent.
-@set args="%*"
-@for /F "delims=++ tokens=1,2,3" %%I in (%args%) do @(
- @set erl_args=%%I
- @call :set_trim node_name %%J
- @call :set_trim node_root %%K
-)
-
-@set releases_dir=%node_root%\releases
-
-@rem parse ERTS version and release version from start_erl.dat
-@for /F "tokens=1,2" %%I in (%releases_dir%\start_erl.data) do @(
- @call :set_trim erts_version %%I
- @call :set_trim release_version %%J
-)
-
-@set erl_exe=%node_root%\erts-%erts_version%\bin\erl.exe
-@set boot_file=%releases_dir%\%release_version%\%node_name%
-
-@if exist %releases_dir%\%release_version%\sys.config (
- @set app_config=%releases_dir%\%release_version%\sys.config
-) else (
- @set app_config=%node_root%\etc\app.config
-)
-
-@if exist %releases_dir%\%release_version%\vm.args (
- @set vm_args=%releases_dir%\%release_version%\vm.args
-) else (
- @set vm_args=%node_root%\etc\vm.args
-)
-
-@%erl_exe% %erl_args% -boot %boot_file% -config %app_config% -args_file %vm_args%
-
-:set_trim
-@set %1=%2
-@goto :EOF
View
2  rel/reltool.config
@@ -30,7 +30,5 @@
{copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
{copy, "files/htoad", "bin/htoad"},
{copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
- {copy, "files/htoad.cmd", "bin/htoad.cmd"},
- {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
{copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
]}.
Please sign in to comment.
Something went wrong with that request. Please try again.