Commit graph

93 commits

Author SHA1 Message Date
Roberto Aloi
93ccbf936c Implement eval command via nodetool 2014-10-21 14:22:37 +02:00
Antonio Murdaca
c9a301d04c Add gen_event template 2014-06-15 14:18:00 +02:00
Habibutsu
12ca1fb126 Error 'Command not found' when sname is used
When a node is configured with -sname the REMSH_NAME_PART argument should be defined with using command 'hostname' but error occurs due extra space
2014-05-27 11:22:24 +03:00
Shunichi Shinohara
81ed1611af Add TODO comment to install_upgrade script template 2014-03-09 15:55:52 +09:00
Shunichi Shinohara
e4300bf88f Change nodetool path to under releases/<RELEASE_VERSION>/ 2014-03-09 15:55:52 +09:00
Shunichi Shinohara
12af16eb70 Add slim release support for runner script 2014-03-09 15:54:32 +09:00
Andrew Thompson
17fe5d6f1c Merge pull request #115 from mdaguete/simplenode.runner-remsh-fixes
Incorrect REMSH args when sname is used.
2014-03-05 15:22:28 -05:00
Pierre Fenoll
70cdb37942 Add command to rebar:command_names/0 2013-12-19 23:05:49 +00:00
Pierre Fenoll
c83d037404 Add a library template 2013-12-19 22:01:25 +00:00
Manuel Durán Aguete
e1d218f99a Init RUNNER_SCRIPT var in simplenode.runner
RUNNER_SCRIPT variable is not initialized in simplenode.runner and it's
referenced when calling sudo.
2013-11-18 13:17:35 +01:00
Manuel Durán Aguete
cdfcc27087 Make REMSH node run in hidden mode
To avoid problems with REMSH node being visible from another nodes
starts it in hidden mode (erl -hidden).
2013-07-19 17:29:26 +02:00
Manuel Durán Aguete
5d4272baef Incorrect REMSH args when sname is used
When a node is configured with -sname in app.config or sys.config the
REMSH_NAME_ARG and REMSH_REMSH_ARG arguments are incorrect due the
assumption that the node name always contains '@'.

To fix the bug, the script tries to find '@' and then compose the
arguments acording to node name type. If in long name mode the
script can't compose a correct node name exits with warning.
2013-07-19 17:29:26 +02:00
Dave Smith
94cf19438c Merge pull request #54 from mattonrails/simpleapp_sup_template_typo
Remove leading empty line from a template
2013-06-14 05:51:13 -07:00
Dave Smith
ef0fd4089f Merge pull request #96 from olgeni/pwd-symlink-fix
Use "pwd -P" to get the current physical path.
2013-06-12 07:46:30 -07:00
olgeni
505458eecb Use "pwd -P" to get the current physical path.
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.
2013-06-10 22:15:49 +02:00
syl20bnr
89c8f931a5 Add support for ping command on windows in the simple node runner 2013-05-20 15:40:03 -04:00
Tuncer Ayaz
a2f3207542 Do not compile nodetool escript
This removes the dependency on lib/compiler in an OTP release.
2013-04-12 20:52:26 +02:00
Tuncer Ayaz
d28c92ff11 simplenode.reltool.config: use default sys-level mod_cond setting
As discussed here
http://erlang.org/pipermail/erlang-questions/2012-December/071135.html
change the reltool spec to use the default sys-level mod_cond setting.
2013-04-06 18:37:47 +02:00
Dave Smith
c057c7771e Remove unnecessary bar 2013-03-02 07:51:26 -07:00
Jared Morrow
c4989f0939 Change simplenode template files to work on more platforms
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
2013-01-17 14:41:21 -07:00
Matthew Conway
6bab3c86d2 Remove leading empty line from a template 2013-01-14 18:00:48 -08:00
Matt Campbell
471b5714eb Quote paths in Windows runner script
This allows the node to run in paths which include special characters,
for example 'C:\Program Files (x86)\Product Name'
2012-07-31 00:08:01 +02:00
Ulf Wiger
a8d11dc273 noderunner: add support for alt dir and boot file
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).
2012-07-14 00:26:09 +02:00
Tuncer Ayaz
f0de7faa11 Simplify reltool.config template 2012-06-19 01:05:45 +02:00
joewilliams
d726e598b5 Add support for using -remsh via runner script 2012-04-23 11:08:19 -07:00
Francis Joanis
47716a7ed8 Use correctly escaped pipes in usage message 2012-04-17 19:56:41 +02:00
Matt Campbell
6f85854414 Improvements to windows node runner script
* 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
2012-04-17 19:56:41 +02:00
joewilliams
bdc1a85239 Add foreground as a runner start option 2012-04-10 17:34:00 -07:00
Yurin Slava
29d71e356c simplenode.runner: fix HEART_CMD arguments 2012-04-04 17:08:04 +02:00
Yurin Slava
cd1cc6dbee simplenode.runner: properly quote arguments
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.
2012-04-04 17:08:04 +02:00
Tuncer Ayaz
769160ac36 Remove export_all in simplemod template 2012-03-25 11:17:42 +02:00
Fisher
dfb973b8b8 Fix handle_call response 2012-02-02 10:35:13 +01:00
Tuncer Ayaz
36b6b7a393 Fix order in erts exclusion filter 2012-01-20 17:30:50 +01:00
Tuncer Ayaz
878dc8ccf7 Simplify excl_sys_filters 2012-01-20 17:26:49 +01:00
Matt Campbell
816d1805d5 Set node name correctly on erlsrv commandline 2012-01-09 12:33:39 +01:00
Tuncer Ayaz
b594d356e1 Fix basic_nif on_load() 2012-01-05 22:41:37 +01:00
Tuncer Ayaz
e4c427be21 Comment out vm args 2011-12-21 16:02:21 +01:00
Tuncer Ayaz
0bdda5baa1 Trim reltool config and add nodeid to release 2011-12-20 22:20:18 +01:00
Matt Campbell
36fe2c460c Don't run erl_args through set_trim
Args provided by erlsrv.exe were being mostly
discarded due to being processed through set_trim
2011-10-20 16:26:28 +02:00
Mistagrooves
8549db72d4 @ characters before elses were causing the script to not run 2011-09-26 10:37:23 -04:00
Steven Gravell
fbd26143bb fix vm.args checks by always using $VMARGS_PATH 2011-09-21 16:09:56 +01:00
Matt Campbell
9bf31b7389 Update Windows runner script usage blurb 2011-09-20 19:45:52 +02:00
joewilliams
cb5056b2e3 Get rid of app.config
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.
2011-09-20 09:44:41 -07:00
Matt Campbell
5998c6c721 Add console command to windows runner script 2011-09-20 17:26:39 +02:00
Ben
9abc294947 Clean up windows batch scripts 2011-09-01 20:31:50 +02:00
Matt Campbell
a58f2c91e3 Add simple Windows batch scripts to node templates 2011-09-01 20:23:54 +02:00
Tuncer Ayaz
112f74cac1 Adapt basicnif template to OTP changes 2011-07-19 17:37:48 +02:00
Tuncer Ayaz
734d30f96e Modernize basicnif template code 2011-07-17 18:38:33 +02:00
Tuncer Ayaz
4e0ab4065f Fix grep portability (Reported-by: Andrew Thompson) 2011-07-14 13:03:54 +02:00
Tuncer Ayaz
12b26fab32 Change shebang lines to /bin/sh 2011-07-13 18:00:52 +02:00