summaryrefslogtreecommitdiff
path: root/priv/templates/simplenode.runner
Commit message (Collapse)AuthorAgeFilesLines
* Init RUNNER_SCRIPT var in simplenode.runnerManuel Durán Aguete2013-11-181-0/+1
| | | | | RUNNER_SCRIPT variable is not initialized in simplenode.runner and it's referenced when calling sudo.
* Use "pwd -P" to get the current physical path.olgeni2013-06-101-1/+1
| | | | | | | | | | | | | | It is a portable version of the realpath(1) utility that you can find on Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue 6, IEEE Std 1003.1). Without the -P flag, pwd(1) might return different values when the current path contains one or more symlinks, depending on how you got into the current directory. In simplenode.runner, this may cause PIPE_DIR to have different values on each use, which will make it impossible to connect to the running node unless you guess the correct path yourself.
* Remove unnecessary barDave Smith2013-03-021-1/+1
|
* Change simplenode template files to work on more platformsJared Morrow2013-01-171-30/+85
| | | | | | | | | | | | When developing Riak, we have found bugs and other issues due to the number of platforms we support. Here is an overview of the changes: - Fix command-line syntax for commands to work on *BSD / Sun - Add chkconfig and getpid to nodetool - Replace platform specific 'kill' commands with a nodetool getpid method - Fix RUNNER_USER settings to work on *BSD
* noderunner: add support for alt dir and boot fileUlf Wiger2012-07-141-20/+54
| | | | | | | | | | | | | | | | | This patch contains two additions to simplenode.runner: 1. Check if vm.args exists in CWD; if so, use it. This makes it easier to start multiple concurrent nodes on a single machine from one rebar-created release (starting each node from its own directory, with its own copy of vm.args and e.g. sys.config, log directory, database directory, etc.) 2. Add the targets start_boot <file> and console_boot <file>. This is used to select a different boot script. The 'setup' application (http://github.com/esl/setup) builds a special boot script for installation (all apps loaded but not started, making it possible to run install hooks with the full code path in place).
* Add support for using -remsh via runner scriptjoewilliams2012-04-231-1/+25
|
* Improvements to windows node runner scriptMatt Campbell2012-04-171-1/+23
| | | | | | | * Typos and other minor bug fixes * Add "attach" command (via -remsh) * Add "upgrade" command to install a hot upgrade package * Add "upgrade" subcommand to UNIX runner script as well
* Add foreground as a runner start optionjoewilliams2012-04-101-1/+26
|
* simplenode.runner: fix HEART_CMD argumentsYurin Slava2012-04-041-1/+1
|
* simplenode.runner: properly quote argumentsYurin Slava2012-04-041-5/+6
| | | | | | bin/<release_name> console -kernel test '[{"a","b"}]' fails, because when $@ is inserted into CMD [{"a","b"}] is interpreted. Fix the same issue for 'start' command and quote all arguments.
* fix vm.args checks by always using $VMARGS_PATHSteven Gravell2011-09-211-24/+23
|
* Get rid of app.configjoewilliams2011-09-201-1/+15
| | | | | | | | | | | | | | | | | | | | app.config has been a long standing erroneous file in rebar. Erlang/OTP documentation suggests a sys.config file instead. This file is stored in the releases/VSN directory. This does a few things but most importantly it ensures your config (contained in the application environment) survives a hot upgrade. It also has the advantage of allowing the configuration of the application to be versioned along side the application code. This patch flips rebar to use sys.config rather than app.config. Additionally it makes this flip to vm.args as well, making them versioned just like sys.config. This patch also includes runner script changes to support the old etc/app.config config file location and support for Windows. Thanks to mokele for the initial work and kick in the pants to make this finially happen.
* Fix grep portability (Reported-by: Andrew Thompson)Tuncer Ayaz2011-07-141-2/+2
|
* Change shebang lines to /bin/shTuncer Ayaz2011-07-131-1/+1
|
* Propagate exit status from nodetool to runner scriptAndrew Thompson2011-07-131-3/+20
|
* fix erlexec parameterAndrew Gopienko2011-07-051-1/+1
|
* Exact match name, cookie (reported-by Pablo Platt)Tuncer Ayaz2011-06-041-2/+2
|
* Support passing plain arguments to `appname start`Alexey Romanov2011-03-051-1/+2
| | | | | | | Currently with default simplenode template, `appname console other_args` will pass ["console", "other_args"] as plain arguments. But `appname start other_args` effectively calls `appname console`. This patch replaces this call with `appname console other_args`.
* Remove rejected commitAlexey Romanov2011-03-051-1/+1
|
* Add console_clean to usage message for simplenode.Alexey Romanov2011-02-211-1/+1
|
* Support passing plain arguments to simplenode.Alexey Romanov2011-02-211-1/+1
| | | | | | | `init:get_plain_arguments()` returns `["console", "more_args"]` when started with `$APP_NAME console more_args`, but `["console"]` when started with `$APP_NAME start more_args`. This patch makes `start` behave like `console` in this respect.
* Clarify trailing slash for PIPE_DIRJoseph Wayne Norton2011-02-151-2/+2
| | | | | The trailing slash for PIPE_DIR is necessary for both start and attach operations.
* Add 'generate-upgrade' commandjoewilliams2011-01-271-2/+8
| | | | | | | | | | | | | | | | | | | | | To support OTP release upgrades I have added support for building upgrade packages. Support for this is included in the rebar_upgrade module, specifically generate_upgrade/2. It requires one variable to be set on the command line 'previous_release' which is the absolute path or relative path from 'rel/' to the previous release one is upgrading from. Running an upgrade will create the needed files, including a relup and result in a tarball containing the upgrade being written to 'rel/'. When done it cleans up the temporary files systools created. Usage: $ rebar generate-upgrade previous_release=/path/to/old/version This also includes a dummy application that can be used to test upgrades as well as an example. Special thanks to Daniel Reverri, Jesper Louis Andersen and Richard Jones for comments and patches.
* Fix possible export VAR=VALUE bashismTuncer Ayaz2010-12-171-1/+2
|
* Revert to using awk instead of cutTuncer Ayaz2010-12-131-3/+3
|
* Extract column 2 on CYGWINTuncer Ayaz2010-12-101-1/+1
|
* Use cut instead of awk to extract 1st columnTuncer Ayaz2010-12-101-4/+3
|
* Change vm process search to include non-smp beamTuncer Ayaz2010-12-101-3/+3
|
* Disable printing of column headers in ps callsTuncer Ayaz2010-12-091-2/+2
|
* Fix portability of ps invocationTuncer Ayaz2010-12-071-1/+17
|
* Fix whitespace error and add file local variablesTuncer Ayaz2010-12-071-1/+3
|
* Fix bashismTuncer Ayaz2010-12-021-1/+1
|
* The trailing slash is important enough to put it here directly since when it'sRyan Tilder2010-06-231-1/+2
| | | | | missing from the PIPE_DIR definition above, the application won't start and doesn't log any thing to the expected locations.
* Fixing issue #3; make sure to properly escape simplenode related files. ↵Dave Smith2010-01-261-1/+1
| | | | Patch provided by cstar..thanks!
* Adding sketch of functionality for creating a reltool node from templateDave Smith2010-01-081-0/+130