Commit Graph

30 Commits

Author SHA1 Message Date
matthewarkin 6356ad2228 Debian init script: Added armhf openjdk6/7
Added java-6-openjdk-armhf and java-7-openjdk-armhf to JDK_DIRS in debian init.d script per elasticsearch/elasticsearch#3659

Closes #3659
2013-09-16 09:56:21 +02:00
Alexander Reelsen e0af9e2c09 Making debian init script bourne shell compatible
Using backticks instead of bash only $() to execute a shell command

Closes #3691
2013-09-16 09:46:43 +02:00
Alexander Reelsen 26f9968b3b Allow packages to disable immediate restart on package upgrade
Both package types, RPM and deb now contain an option to not restart on upgrade.

This option can be configure in /etc/default/elasticsearch for dpkg based systems
and /etc/sysconfig/elasticsearch for rpm based systems.

By default the setting is as before, where a restart is executed on upgrade.

Closes #3685
2013-09-13 17:45:39 +02:00
Louis Gueye 048a02eebc Debian init script: Add debian default java location
Adding /usr/lib/jvm/default-java to JAVA_HOME candidates to check

Closes #3500
2013-08-23 11:27:12 +02:00
Alexander Reelsen a7b643305a Fix debian init script to not depend on new start-stop-daemon
By making use of the lsb provided functions, one does not depend on the start-stop daemon version to test if elasticsearch is running.
This ensures, that the init script works on debian wheezy, squeeze, current ubuntu and LTS versions.

Closes #3452
2013-08-12 15:03:42 +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
Alexander Reelsen a5f9173e14 Making deb installable by being lintian compatible
According to #2515 the ubuntu software center does not allow to install
debian packages which are not lintian compatible

I worked on the package and made it lintian compatible by doing

* Ignoring errors about arch dependent binaries as we will not split
  this package. The arch dependent libraries are used correctly.
* Added a copyright file pointing to the apache license in debian

Closes #2515
Closes #2320
2013-06-07 13:53:14 +02:00
Christoph Kempen 9f43814a86 Changed Java dependency from Depends to Suggest.
Since people are using the Oracle JAVA distribution and not the OpenJDK.
You can suggest it of course. Now the installation will at least continue.

If the init script is called, it will exit with a useful error message, that
no JDK is available via the JAVA_HOME variable.
2013-06-02 15:09:29 +02:00
Alexander Reelsen 2485c4890c Packaging improvements & bugfixes
* RPM: Use the ES_USER variable to set the user (same name as in the debian package
  now), while retaining backwards compatibility to existing /etc/sysconfig/elasticsearch
* RPM: Bugfix: Remove the user when uninstalling the package
* RPM: Set an existing homedir when adding the user (allows one to run cronjobs as this user)
* DEB & RPM: Unify Required-Start/Required-Stop fields in initscripts
2013-05-17 11:14:44 +02:00
Ilya Nazarov da3d682f0e Check for java-6-openjdk-i386 in init.d
There is check for /usr/lib/jvm/java-6-openjdk-amd64, but no for 32-bit systems (/usr/lib/jvm/java-6-openjdk-i386).
2013-02-21 21:13:51 +07:00
Daniel Muller 9e79f54cb1 Check for java-6-openjdk-amd64 2013-01-23 18:34:37 +01:00
Shay Banon 8dcee09868 expose the max direct memory allowed in jvm info, and guess better then receive buffer size predictor size based on it 2012-07-31 15:06:21 +02:00
Petri Lehtinen 834c79597e deb: Allow configuring max open files and max locked memory limits 2012-06-27 13:09:46 +02:00
Shay Banon 53be815e22 Init script in Debian package ignores some options in elasticsearch.yml, closes #1765. 2012-06-11 13:49:59 +02:00
Aurelien Requiem 6d867126c9 lintian rule : missing-dependency-on-libc on lib/sigar/libsigar-amd64-linux.so
* added "linc6" as a package dependency as it's required for file
	  lib/sigar/libsigar-amd64-linux.so and lib/sigar/libsigar-x86-linux.so
	  Refer to Debian Policy Manual section 8.6 (Dependencies between the
	  library and other packages - the shlibs system) for details.
2012-06-11 12:29:09 +02:00
Aurelien Requiem 6d477aee0d lintian rule : possible-unindented-list-in-extended-description in src/deb/control/control
* replaced asterisk (*) in the package description to match lintian
	  rule. Refer to Debian Policy Manual section 5.6.13 (Description)
	  for details
2012-06-11 12:29:09 +02:00
Aurelien Requiem 8ad6e7a372 lintian rule : maintainer-script-needs-depends-on-adduser postinst
* added dependency in control for "adduser" package as the command is
	  used in the postinst script
2012-06-11 12:29:08 +02:00
Aurelien Requiem 17a28b0fe0 lintian rule : extended-description-line-too-long in src/deb/control/control
* reduced description lines to 80 chars max to comply with lintian
2012-06-11 12:29:08 +02:00
Shay Banon 72646fdfea export ES_JAVA_OPTS in deb script 2012-06-07 15:45:57 +02:00
Jordi Boggiano b8acb9c0bb Update requirements of the deb package
Virtual packages such as java*-runtime are provided by various
java/JRE implementations, which makes it more flexible to use.
2012-06-07 15:38:03 +02:00
Shay Banon 13c76baa72 fix heap memory settings in default, and comment out all the options (in case they are changed in the init.d one) 2012-05-21 11:17:35 +02:00
Shay Banon 3b33e3f342 deb: ES_HEAP_SIZE not exported, closes #1947. 2012-05-13 10:11:33 +03:00
Shay Banon 379976b5ce better listing of jdks to try 2012-05-10 00:01:53 +03:00
Radu Gheorghe 175545f3df Added JAVA_HOME paths (6 and 7) for Ubuntu 12.04 x86_64 2012-05-09 23:47:10 +03:00
Shay Banon 5a2ee614d1 Debian: Update deps to be on openjdk-7-jre-headless first, then 6, closes #1929. 2012-05-09 23:46:28 +03:00
Shay Banon a135c9bd8b prefer jdk 7 over 6, and provide use the new ES_HEAP_SIZE env (so min max are the same) 2012-02-08 15:47:13 +02:00
Peter 3701f748d4 remove empty data dir 2012-02-08 12:25:45 +01:00
Peter cf2a726081 prefer oracle over openjdk. prever 6 over 7 2012-02-08 08:57:18 +01:00
Peter 30dbb0773f do not delete data on remove 2012-02-08 08:43:39 +01:00
Peter 3c574ba398 moving debian package to maven 2011-12-08 10:31:53 +01:00