From 267b906a9f36ef62f432f225fe1dc58915a64785 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 11 Mar 2014 12:26:39 -0500 Subject: use vm.args in basic bin script --- priv/templates/bin.dtl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 priv/templates/bin.dtl (limited to 'priv/templates/bin.dtl') diff --git a/priv/templates/bin.dtl b/priv/templates/bin.dtl old mode 100644 new mode 100755 index 067e9f7..8f8b048 --- a/priv/templates/bin.dtl +++ b/priv/templates/bin.dtl @@ -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 @@ -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 $@ -- cgit v1.2.3