Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
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
|
|
|
|
|
|
|
|
get nodename from erlang, not hostname
|
|
|
|
|
|
The -X flag is not supported on BusyBox for example.
Using -t x should give the same behavior as -X.
|
|
|
|
|
|
|
|
|
|
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,,}}
|
|
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
|
|
|
|
bug description:
if vm.arg use '-sname xxx' option, When exec upgrade/install/unpack command, it will report "Hostname yyy is illegal" error.
|
|
|
|
|
|
Add rpc|rpcterms to nodetool usage
|
|
Regression fix on startup script improvements
|
|
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)
|
|
|
|
Without a proper shebang many tools like lintian for debian
packages complain.
|
|
- 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
|
|
'-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
|
|
|
|
|
|
|
|
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`.
|
|
|
|
where od -X /dev/urandom returns columns separated by more than one space
|
|
|
|
|
|
|
|
Use 'erl' to determine Erlang hostname rather than nodetool
|
|
Remove unneeded @ which may output error messages
|
|
|
|
|
|
|
|
|
|
|
|
handle the renaming of the boot script to start.boot in basic bin script
|
|
|
|
|
|
|
|
Fixes #286
Using `exit $?` will exit with 0 status even in error conditions. I
believe this is due to the fact that the `if` statement sets `$?`
somehow. This could be a bug in the version of `bash` I'm using (as
`/bin/sh`):
```
$ /bin/sh --version
GNU bash, version 4.3.30(1)-release (x86_64-unknown-linux-gnu)
```
|
|
|
|
Rather than use `ps`, `grep` and `awk` to get the `beam.smp` process id,
use the `os:getpid` function.
Also, provide a `pid` command to facilitate retrieving the VM's process
id at a later time. Useful for when running via `monit`, for instance.
|