Created attachment 385124 [details] output of running elasticsearch manually By default the ebuild creates /etc/elasticsearch/logging.yml.sample and gives instructions to copy this (and other sample files) to the according directories of default and/or addtional instances. Starting with 1.3.2, and using an otherwise unmodified /etc/elasticsearch/logging.yml file, there are no further logs appended to /var/log/elasticsearch/_default/elasticsearch.log (or to the according logfile based on the cluster.name setting in elasticsearch.yml). Trying to manually start elasticsearch with the same options the initscript would start it, it complains about /etc/elasticsearch/logging.yml.sample file (see attached output). If I remove the logging.yml.sample file, the logging looks to be working as expected again. Proposed solution/workaround: install the sample files to an other location (/usr/share/elasticsearch/samples or similar perhaps?) and update the intructions in pkg_postinst() accordingly.
Created attachment 385984 [details, diff] Proposed changes to 1.3.2 So other then the newer init/service file versions, I believe this will address the issue. Could you test and confirm please?
Looks like you would like to get rid of logging.yml.sample. I'd like to clarify the situation: if you rename logging.yml.sample to logging.yml, it works just fine, so I would say the file itself is not faulty. However, if you follow the instructions in pkg_postinst() and just copy the file, so there are both logging.yml and logging.yml.sample under /etc/elasticsearch, then it breaks logging. So, that's why I originally proposed to install the sample file(s?) to another directory and update the instructions accordingly. I'm going to attach a proposed ebuild here for 1.3.2-r1.
Created attachment 386108 [details, diff] Proposed patch for 1.3.2 Proposed patch for 1.3.2, containing the following changes: - don't rename upstream files to *.sample - install sample configuration files to /usr/share/doc/${P}/examples instead of /etc/elasticsearch - update pkg_postinst() instructions - install updated initscript/service files proposed on bug #523238
+*elasticsearch-1.3.2-r1 (06 Oct 2014) + + 06 Oct 2014; Tony Vroon <chainsaw@gentoo.org> +elasticsearch-1.3.2-r1.ebuild, + +files/elasticsearch.init3, +files/elasticsearch.service2: + Much improved init script, systemd service file and user configuration + respect after a refactoring by Ferenc Erki. His work closes bug #523236 and + #523238. Thank you for your contribution to Gentoo Linux. If you get inspired further, please let me have a new bug.