Alexander Reelsen
7c96627d76
Remove bash specific calls
...
Make sure that every call in a shell script is supported by /bin/sh and not a bashism, like $()
Closes #4314
2013-12-03 10:23:40 +01:00
Alexander Reelsen
e1cbbbaa60
Elasticsearch startup script supports directories containing spaces
...
Closes #3712
2013-09-17 08:14:23 +02:00
Alexander Reelsen
2b03bc83a4
Dont write pidfile twice on startup
...
There is no need to write the pidfile in the bin/elasticsearchshell script
as this happens already in the java code.
Also cleaning up the bin/elasticsearch shell script a bit (no need to return
an error code when exec is called, as this forks and exits the shell script
immediately).
Closes #3529
Closes #1745
2013-08-23 13:20:29 +02:00
Alexander Reelsen
c59b0b22e2
Debian/Redhat package improvments
...
This decision helps people who want to rollout the oracle java without having an openjdk java installed.
* Removed any hard dependency on Java in the debian package
* The debian init script does not check for an existing JAVA_HOME anymore
* Debian and RedHat initscripts now exit if they do not find a java binary (instead of starting elasticsearch in the background and swallowing the error as there is no way to log it in that case)
* Changed the debian init script to rely on the pid file instead of the argument name of process
* Added a useful error message in case no java binary is available (in elasticsearch shell script)
Closes #3304
Closes #3311
2013-07-15 16:03:24 +02:00
Shay Banon
c834bca43c
use java to when no JAVA_HOME defined
...
remove using "which java", which will give a better error message when java is not available
2012-09-01 11:54:25 +02:00
David Pilato
2ea77782a1
Parse elasticsearch.in.sh before setting JAVA dir as we could define JAVA_HOME in elasticsearch.in.sh
2012-05-24 12:37:25 +02:00
Stefan Fussenegger
a96391224a
fixed always returning 1 if launching in background without pidpath
2012-04-24 15:11:26 +03:00
Shay Banon
aa51a8af9c
add back writing pid from shell as well as writing it from Java process, for some reason, it caused a strange failure in clinton test harness, we need to chase it down, but for now, lets bring this back
2012-02-26 20:43:30 +02:00
Shay Banon
aee0e1dfb7
doc the ES_HEAP_SIZE
2012-02-06 22:13:15 +02:00
Shay Banon
91b60f1d2f
Generate pid file even when running in foreground mode, closes #1553 .
2011-12-21 05:28:28 +02:00
Shay Banon
682be7c63a
fix the script to really work with spaces in the path
2011-12-01 17:04:15 +02:00
Miquel Rodríguez Telep / Michael Rodríguez-Torrent
c14db4dd21
Fix escaping of arguments with paths in the bash script
2011-12-01 16:29:19 +02:00
kimchy
cf4f2ce6ba
better script execution in cygwin
2011-05-13 13:46:04 +03:00
Benoit Sigoure
50a475fd02
Startup script: fix shell quoting.
...
Paths should be quoted to avoid problems with spaces.
Arguments to the `case' command do not need to be quoted as it doesn't
undergo word splitting.
2011-04-22 10:31:01 +03:00
kimchy
5cd0bc52af
set CDPATH to empty value so it won't conflict when "cd"
2011-04-17 18:59:58 +03:00
kimchy
dc0e493cce
elasticsearch script: Change CLASSPATH to ES_CLASSPATH, closes #818 .
2011-03-30 21:03:24 +02:00
kimchy
bc882182ab
change scripts to start the ElasticSearch main class (a wrapper around Bootstrap) just so the process name will look nicely on jps
2011-03-04 20:14:22 +02:00
kimchy
17e5b3dd27
add comment on format of min and max mem
2010-11-06 22:34:49 +02:00
Ask Bjørn Hansen
c69e77d2c4
Make bin/elasticsearch foreground mode launchd/daemontools compatible
2010-09-13 14:34:29 +02:00
kimchy
d5ff6a7cd4
add doc to the script
2010-06-07 18:26:01 +03:00
kimchy
150defd2aa
fix doc in elasticsearch script
2010-06-07 18:20:07 +03:00
kimchy
2878ae7dd6
Add a -v flag to output version information, closes #128
2010-04-26 11:05:56 +03:00
kimchy
b3337c3127
initial commit
2010-02-08 15:30:06 +02:00