aboutsummaryrefslogtreecommitdiffstats
path: root/priv
AgeCommit message (Collapse)Author
2019-05-27Merge pull request #724 from venimus/findstr-pathv3.32.0Tristan Sloughter
Fix "'findstr' is not recognized as ..."
2019-05-27Merge pull request #719 from escarabelg/patch-1Tristan Sloughter
change '' to ``. Bug windows 7+
2019-05-27Fix "'findstr' is not recognized as ..."Ivaylo Badinov
Make sure findstr is discoverable (cherry picked from commit 88481962ead6057c1be9658ee50b1131b664dcc4)
2019-05-18include apps in start_clean release but don't load in console_cleanTristan Sloughter
2019-05-15change '' to ``. Bug windows 7+Guilherme Escarabel
2019-04-14add dist name and cookie to ERL_FLAGS for nodetool (#712)v3.31.0Tristan Sloughter
* remove deprecated hex field from .app.src * start nodetool dist node in erl flags
2019-04-12include dist and epmd arguments from vm.args in remote shell and nodetool ↵v3.30.0Tristan Sloughter
calls (#710) * remove unused VM_ARGS variable * include dist args in extended start scripts other calls
2019-04-12don't require a cookie in the start script (#708)Tristan Sloughter
* don't require a cookie in the start script * remove ensure cookie function from windows script * Add updated cookie handling for win32
2019-04-05Refactor creation of .erlang.cookie for use in start/console procedures (#690)Tino Breddin
* Randomize dummy node name The static name used so far would result in name clashing when running the script multiple times in short succession. * Fix find_sys_config routine in win32 extended bin * Remove escaping of double quotes * Fix dummy command syntax * Refactor creation of .erlang.cookie at startup * Fix dummy node logic for win32
2019-04-03Fix parameter shift on win32 for extension commandsTino Breddin
2019-04-01use RELX_OUT_FILE_PATH even when generating from .src files (#700)Tristan Sloughter
2019-03-31RUNNER_LOG_DIR is only used in 'start' so only make it there (#699)Tristan Sloughter
2019-02-21Attempt at a fix for vm.args usage (#688)v3.29.0Anthony Molinaro
* Attempt at a fix for vm.args usage * bump sleep time to see if it fixes tests on travis
2019-02-13Merge pull request #675 from slepher/masterLuis Rascão
--relx-disable-hooks cause start_boot <boot_file> start fail
2019-02-11Fix relx_escriptTino Breddin
2019-02-10Fix windows extended binTino Breddin
2019-02-10Add extensions to win32 extended_binTino Breddin
2019-02-08Add sys.config and vm.args check to extended win32 binTino Breddin
2019-02-08Fix renaming of .orig configuration files on WindowsMichael Taylor
Fix .orig rename commands in bin_windows 1. .orig was being prepended second argument rather than appended to the first argument 2. Windows' ren command expects the second argument to be just a file name (not contain drive or path components) 3. Tidy up appending of .orig, place inside double quotes rather than outside of quotes. This matches the usage a few lines later: @if exist "%rel_dir%\%rel_name%.boot" ( Copy rename commands from bin_windows to extended_bin_windows.
2019-01-31Merge pull request #678 from aeternity/uw-auto-set-cookieLuis Rascão
run named erl nodes to auto-set cookie
2019-01-16Enable passing arguments with spaces to extensionsLuca Favatella
2018-11-27run named erl nodes to auto-set cookieUlf Wiger
2018-11-19Don't write to release bin/ directoryeldarko
Let the user provide writable $ROOTDIR/tmp so it can be used for temporary files
2018-10-30fix --relx-disable-hooks cause start_boot <boot_file> start failslepher
2018-10-11Prevent double hook invocation on 'start' commandLuis Rascao
2018-10-11Capture internal start script argumentsLuis Rascao
2018-09-19using %hostname% in service installshamis
2018-08-09Check for pipe write permission on start/attachLuis Rascao
A common pitfall when starting up Erlang nodes is to start them as root and then fail silently when switching to another user, improve this by providing a helpful error message when this happens.
2018-06-19Fix hostname settings in windows extended script (#659)v3.25.0Fred Hebert
- if the hostname is set in the vm.args file, preserve it - if it is not set, try to set it from env vars - if the env vars are not set, leave it blank
2018-06-15Start script (#635)Michael Santos
* templates/bin: replace process with erlexec Similar to templates/extended_bin, use "exec" to avoid leaving an extra shell process running. * template/{bin,extended_bin}: set program name Set the program name to the script name in process lists using the same method as escripts. The program name can be overriden by setting the ESCRIPT_NAME environment variable: # before msantos 10428 9554 49 10:33 pts/25 00:00:01 /usr/local/lib/erlang/erts-9.2/bin/beam.smp -Bd -- ... # after msantos 10054 9554 32 10:33 pts/25 00:00:01 /home/msantos/src/erlang/appname/_build/default/rel/appname/bin/appname -Bd -- ... # ESCRIPT_NAME="foo" msantos 11254 9554 32 10:35 pts/25 00:00:01 foo -Bd -- ...
2018-06-12support for OTP21's sys.config.src file in releases (#647)Tristan Sloughter
* support for OTP21's sys.config.src file in releases * always replace os vars in .src files if found * support vm_args_src to be consistent with sys_config_src * add newlines after warning logs * improve sys and vm src config tests
2018-06-02add -heart to args not to be copied to nodetool (#653)Jan Uhlig
2018-04-01Reorder replace_os_vars and node NAME assignmentAlexander Petrovsky
2018-04-01Fix backup file creation by sedAlexander Petrovsky
2018-03-22Extend adding extra args from vm.args to install_upgrade.escriptkonyaris
2018-02-15Add extra args from vm.args into escripts and erlAlexander Petrovsky
2018-01-02Clarify that extension scripts shall exitLuca Favatella
2017-11-21Revert "Only print lines for os var that are set"Tristan Sloughter
2017-11-20Windows: support remote_console, fix attachFred Hebert
On Linux, 'attach' uses named pipes, and 'remote_console' uses -remsh. The latter is usually deemed better since named pipes require a call to fsync on every line written. On Windows, no named pipes are available so attach uses -remsh directly. Historically, remote_console was added to linux *after* attach, but no alias was added for it on windows. Since there's a predominance of tutorials using linux-likes, remote_console is widely documented as the way to go, and is unavailable on windows. This is hella confusing. So to work around that, this patch adds an alias for 'attach' on windows to be 'remote_console', bridging the gap. Also the functionality was flat out broken because it would not use a node hostname when connecting out. Since the latest release added that functionality, this patch also fixes attach to work in the first place.
2017-11-17Fix release upgrades on WindowsFred Hebert
Some tool calls were outdated, and in some cases, relied on non-existing features there.
2017-11-01Support OTP-20 Unicode functionsFred Hebert
Use either optional compilation or version-safe variants of the string functions. Prevents warnings when the switch to OTP-21 will happen.
2017-10-30Fix printf statement. Backslash is not necessary and dash is picky about itLuke Bakken
2017-10-30Add test that demonstrates that fixes preserve an argument that contains ↵Luke Bakken
both double quotes and a space character
2017-10-25Correctly construct HEART_COMMAND and run_erl argumentsLuke Bakken
The runner script that ships with rebar builds HEART_COMMAND and run_erl arguments that preserve additional arguments the user may have passed: https://github.com/rebar/rebar/blob/master/priv/templates/simplenode.runner#L215-L238 This PR preserves this behavior. In additon, the current code on this line sets $@ but does not do anything with the result: https://github.com/erlware/relx/blob/master/priv/templates/extended_bin#L481-L482 Investigated in response to this ML thread: http://erlang.org/pipermail/erlang-questions/2017-October/093974.html
2017-10-19Only print lines for os var that are setAnthony Jackson
2017-10-19Merge pull request #616 from koctep/add_boot_var_ERTS_LIB_DIRLuis Rascão
Add boot_var ERTS_LIB_DIR to relx_get_nodename
2017-10-18Start script extensions (#613)Luis Rascão
* Extended start script command extensions Provide a mechanism that allows for the application to extend the list of commands available to be invoked from the start script. An application may be able to define a 'foo' extension that is associated with a 'foo_script' written and maintained by the applicationr, (this association is kept in rebar.config), upon invocation of bin/<release_name> foo the 'foo_script' will then be invoked. * Add test coverage for extension script * Ensure extended script usage argument
2017-10-19Add boot_var ERTS_LIB_DIR to relx_get_nodenameIlya Ashchepkov
2017-10-18Merge pull request #609 from K2InformaticsGmbH/masterLuis Rascão
[windows] pass extra arguments from vm.args to service
2017-10-17Merge pull request #610 from juhlig/patch-1Luis Rascão
vm.args check for name/sname parameter