Skip to content

Commit

Permalink
Merge pull request #137 from tsloughter/vm_args
Browse files Browse the repository at this point in the history
use vm.args in basic bin script
  • Loading branch information
jwilberding committed Mar 12, 2014
2 parents 6c962c9 + 267b906 commit f2e4ddf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion priv/templates/bin.dtl 100644 → 100755
Expand Up @@ -31,8 +31,16 @@ find_sys_config() {
fi
}

find_vm_args() {
local possible_vm_args=$REL_DIR/vm.args
if [ -f "$possible_vm_args" ]; then
VM_ARGS="-args_file $possible_vm_args"
fi
}

find_erts_dir
find_sys_config
find_vm_args
export ROOTDIR=$RELEASE_ROOT_DIR
export BINDIR=$ERTS_DIR/bin
export EMU=beam
Expand All @@ -41,4 +49,4 @@ export LD_LIBRARY_PATH=$ERTS_DIR/lib:$LD_LIBRARY_PATH

cd $ROOTDIR

$BINDIR/erlexec $ERL_OPTS $SYS_CONFIG -boot $REL_DIR/$REL_NAME $@
$BINDIR/erlexec $ERL_OPTS $SYS_CONFIG $VM_ARGS -boot $REL_DIR/$REL_NAME $@

0 comments on commit f2e4ddf

Please sign in to comment.