aboutsummaryrefslogtreecommitdiffstats
path: root/priv
AgeCommit message (Collapse)Author
2016-10-27Fix replace os vars functionalityLuis Rascao
The first run would correctly replace the environment variables, however it would also overwrite the original vm.args and sys.config thus preventing any further substitution in subsequent runs. Dev mode runs were also broken, all runs after the first were required to also define the RELX_REPLACE_OS_VARS variable in order not to overwrite the current vm.args with the original one, this prevented simply attaching to an already running node that was started this way. Add tests to exercise this functionality.
2016-10-03Always ask release handler to update paths on relupLuis Rascao
When performing a relup that involves starting a new application we need to inform release handler that the code paths need to be updated to account for the new apps. Otherwise the relup instruction application:start/2 will fail since it is unable to find the .app file.
2016-08-24Merge pull request #479 from emtenet/add-boot-varv3.21.0Tristan Sloughter
Fix for #478 Boot variable $ERTS_LIB_DIR not supplied in Windows scripts
2016-08-24Merge pull request #464 from filmor/patch-1Tristan Sloughter
Fix erts path discovery on Windows if the path contains spaces.
2016-08-16Handle release_handler old_processes error when doing a soft purge relupLuis Rascao
As described in http://erlang.org/doc/man/appup.html, when performing a relup with soft purge: If the value is soft_purge, release_handler:install_release/1 returns {error,{old_processes,Mod}}
2016-06-17Remove a non-POSIX command.soranoba
2016-06-16If cookie is not exist in vm.args, it use the cookie in ~/.erlang.cookiesoranoba
2016-05-28install and start release in Windows 7/XPFred Hebert
I am submitting this on behalf of @povloid in https://github.com/erlang/rebar3/issues/1183 who had the following to say: the set is not work into `@if` block, in this case the vareables args, start_erl and description is empty. If we move this strings out of `@if` block, the script work correctly.
2016-04-29Add a boot variable to Windows scriptsemtenet
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
2016-04-26Fix: does not contain the part of the commandsoranoba
2016-04-05Update extended_bin_windowsBenedikt Reinartz
2016-04-05Fix erts path discovery on Windows if the path contains spaces.Benedikt Reinartz
2016-03-31Merge pull request #459 from djnym/erlang_hostnamev3.19.0Tristan Sloughter
get nodename from erlang, not hostname
2016-03-28provide eval command for nodetool and start scriptAnthony Molinaro
2016-03-22get nodename from erlang, not hostnameAnthony Molinaro
2016-03-22Use standard flags to odHakan Nilsson
The -X flag is not supported on BusyBox for example. Using -t x should give the same behavior as -X.
2016-01-23replacing OS vars: use .orig files to prevent overwritingerlanger
2016-01-22replacing OS vars: comply with otp sys.config requirementerlanger
2015-12-31Revert "Enhance evaluation of environment variables"revert-426-varsTristan Sloughter
2015-12-30Allow console to set code loading mode based on defaults.Shawn Debnath
2015-12-22Enhance the variable replacementSerge Aleynikov
Add ability to also run shell commands contained in the sys.config. E.g.: # In this example the node name defaults to name of the release # and can be overriden at run-time, appended with current year $ head -1 vm.args -sname ${NODE_NAME:-$REL_NAME}$(date +%Y) # If the $NAME is 'abc2015', and hostname is 'MyHost', below the 'node' # parameter gets set to 'Abc2015@myhost' $ grep node sys.config {node, $(echo ${NAME^})@${HOSTNAME,,}}
2015-12-22Optimize evaluation of environment variablesSerge Aleynikov
This patch addresses the following issues: * When RELX_REPLACE_OS_VARS is set, evaluation of environment vars is done by the shell rather than awk, this allows to use more powerful notation of environment variables in sys.config and vm.args (e.g. `-sname abc@${HOSTNAME,,}` or `{myapp, [{user, ${USER:-unknown}}]}` * Using shell vars rather than unnecessarily forking awk/grep/etc
2015-11-19make remote shell a hidden node so they don't try to join each otherTristan Sloughter
2015-11-06fix upgrade/install/unpack command bugpaul
bug description: if vm.arg use '-sname xxx' option, When exec upgrade/install/unpack command, it will report "Hostname yyy is illegal" error.
2015-10-04continue extended_bin script execution after VMARGS checksartygus
2015-09-27make short name the default in vmargsTristan Sloughter
2015-09-24Merge pull request #395 from essen/masterv3.7.0Tristan Sloughter
Add rpc|rpcterms to nodetool usage
2015-09-24Merge pull request #399 from priestjim/feature/startup-script-fixesTristan Sloughter
Regression fix on startup script improvements
2015-09-24Regression fix on startup script improvementsPanagiotis PJ Papadomitsos
Fixed a regression that occurs when using readlink on a Mac, which crashes the startup script if the startup script is not a link but an actual file (which is the most common case)
2015-09-22Add rpc|rpcterms to nodetool usageLoïc Hoguin
2015-09-21Adding shebang to escriptDavid Leach
Without a proper shebang many tools like lintian for debian packages complain.
2015-09-15Startup script improvementsPanagiotis PJ Papadomitsos
- Made the standard and extended startup scripts self-link-aware. This helps with deployments that symlink the startup script to more standard directories (i.e. /usr/local/bin). readlink is used, which comes standard in all Unix-like distributions - Made the inclusion of a custom sys.config not depend on a custom vm.args file. This way you can use a custom sys.config without using a custom vm.args file
2015-08-04'od' only needs to read 4 bytes of random dataGarret Smith
'-N 4' option looks portable across all major flavors of *BSD, Linux, OSX Adding this option prevents a strange case where 'od' can go to 100% CPU in restart scenarios
2015-07-20Fix start script not loading sys.config in consoleCarlosEDP
2015-07-18fix console_clean in dev_mode by always creating start_clean.bootTristan Sloughter
2015-06-23Adjust local variable naming per review commentsJared Morrow
2015-06-23Remove bashisms from run scriptsJared Morrow
This commit removes the bashisms in `bin` and `extended_bin`. Both of these scripts used `local` variables which are a bash addition and aren't supported on Solaris/SmartOS /bin/sh. To keep the local intention of the variables, they were renamed from $var to $l_var. In addition, `extended_bin` used `kill -SIGNAL $PID` which is also not in Solaris `kill`.
2015-05-08use mustache instead of erlydtl for overlaysTristan Sloughter
2015-04-04Replace "cut -d ' ' -f2" with "awk '{print $2}'" so it will work on a mac, ↵Jay Doane
where od -X /dev/urandom returns columns separated by more than one space
2015-04-04Replace "-s init stop" with "halt()" in relx_get_longnameJay Doane
2015-03-31Replace "-s init stop" with halt()Jay Doane
2015-03-31support spaces in erl path in windows scriptTristan Sloughter
2015-03-31Merge pull request #316 from davidw/fix_hostname_lookup2Tristan Sloughter
Use 'erl' to determine Erlang hostname rather than nodetool
2015-03-31Merge pull request #260 from syl20bnr/remove_uneeded_charsTristan Sloughter
Remove unneeded @ which may output error messages
2015-02-17Use 'erl' to determine Erlang hostname rather than nodetoolDavid N. Welton
2015-01-31don't use CONFIG_PATH os var, fixes #241Tristan Sloughter
2015-01-30expose rpc and rpcterms functionality from extended bins scriptTristan Sloughter
2015-01-28support rpcterms with no args or argstring in nodetoolTristan Sloughter
2015-01-27treat rpcterm args as a string not a list of elementsTristan Sloughter
2015-01-11Merge pull request #296 from tsloughter/basic_binJordan Wilberding
handle the renaming of the boot script to start.boot in basic bin script