aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
AgeCommit message (Collapse)Author
2017-03-11Only use multi-node sys.config if requested when replacing OS varsLuis Rascao
When replacing OS vars only create multi-node sys.config files (ie. filenames containing the node name) only if explicitly requested. This is necessary because inclusion of other config files inside of sys.config is only allowed if the file is actually called sys.config and nothing else.
2016-12-18Obtain release node name from Erlang VM instead of OSLuis Rascao
2016-11-12Add support for new relx directive that provides start/stop shell script hooksLuis Rascao
New 'extended_start_script_hooks' directive that allows the developer to define six different hook shell scripts to be invoked at pre/post start/stop/install upgrade phases. Besides these custom defined scripts, other types of builtin scripts are also available, these offer pre-packaged functionality that can be used directly, they are: pid - writes the beam pid to a configurable file location (/var/run/<rel_name>.pid by default). wait_for_vm_start - waits for the vm to start (ie. when it responds to pings) wait_for_process - waits for a configurable name to appear in the erlang process registry The hook scripts are invoked with the 'source' command, therefore they have access to all the variables in the start script.
2016-11-11Refactor foreground commandLuis Rascao
Move it next to console since it's mostly the same thing but with extra parameters.
2016-11-09Remove name collisions of replaced files in multi-node setupsSerge Aleynikov
2016-10-30Allow optionally setting a release as permanent after relupLuis Rascao
Support a command line argument to the `upgrade`/`downgrade` commands: `--no-permanent`, if this is set the release will be unpacked, installed and be made current but not permanent, when the user is confortable with the outcomehe can issue the same command a second time without the `--no-permanent` option.
2016-10-30Provide per-command command line helpLuis Rascao
2016-10-31add versions in command helpsoranoba
2016-10-31Support the uninstall command. (release_handler:remove_release/1)soranoba
2016-10-29Allow for a more flexible relup package locationLuis Rascao
Instead of forcing the user to put the tarball package with the expected name (<relname>.tar.gz)and in the expected location (releases/<version>) symlink this fixed file name to a tarball existing in one of three different places (releases/, releases/<version>, releases/<version>/<relname>.tar.gz). Refactor the install/upgrade escript to make it more dynamic, it now runs commands that are passed from the start script while accepting a variable number of arguments. Add a `versions` command to the extended start script that prints out the currently installed versions and their status.
2016-10-28Fix upgrade/downgrade/install usageLuis Rascao
The second argument is actually the version and not the package name.
2016-10-27tch to fix #523Deepak Goel
Issue 1: If RELX_REPLACE_OS_VARS is true then existing vm.args (sys.config) file is renamed to vm.arg.orig (sys.config.orig) and a new vm.args (sys.config) is generated. However, if for some reason new vm.args (sys.config) is not generated then system ends up without a valid vm.args (sys.config) file and keeps failing thereafter. Issue 2: Continuing from issue 1, if the system does not have sufficient disk space or the current directory is immutable then new vm.args (sys.config) will not be generated. This patch tries to fix both the above issues by keeping the existing vm.args (sys.config) untouched and creates a new vm.args (sys.config) in /tmp directory
2016-10-27ensure an appropriate TERM var is setBen Murphy
useful if deploying erlang nodes via capistrano when TERM is not set correctly attaching to the node will result in weirdness
2016-10-27disable ctrl-s block node featureBen Murphy
(see: http://erlang.org/pipermail/erlang-patches/2010-March/000883.html)
2016-10-27Give code path access to console_cleanLuis Rascao
To allow manually loading and starting up applications.
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-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-04-26Fix: does not contain the part of the commandsoranoba
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-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-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-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