Age | Commit message (Collapse) | Author |
|
* 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 -- ...
|
|
Any output string from .erlang to stdout will be prepend to
code:root_dir(), so it will cause the retrieved dir incorrect.
The fix is to start erl with the no_dot_erlang boot file.
|
|
|
|
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)
|
|
- 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
|
|
|
|
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`.
|
|
|