New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add common SystemD file for RPM/DEB package #10725
Conversation
@electrical Can you have a look please? thanks |
48d465a
to
d7dc88f
Compare
@spinscale Can you have a look please? thanks |
when installing on jessie, all the output is occuring in
tested this against the pr rebased against master Update: Same happens on opensuse |
we also should update docs at http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html#_apt - as we always call |
d7dc88f
to
c283718
Compare
@spinscale thanks for your review. I updated the code following your comments but I was forced to rebase because of #10986. Having STDOUT in the journal did not choke me since I find this useful. But we already log everything in the log file so I agree with you, we can skip the journal log: I added option StandardOutput for that. I also added option StandardError so that if startup failed it will be printed in journal. I updated the documentation here and add a one line check in tests here for #10986. Tested on OpenSUSE13, Fedora 21, Debian 8 and Ubuntu 15.04 server. Can you please have a look? I'd like to push this quickly and move forward on SysV init scripts. Thanks :) |
Tested on
This is the
I get this on my ubuntu trusty system, did you change anything there? The process starts, but stops again with this message (added in the
|
@spinscale thanks for your review!
Done.
No, but in the meanwhile the security manager has been enabled. I fixed few things in #10986 but I did not double check the init.d scripts... The Debian script was referring to |
81c8429
to
e7476a0
Compare
another test
reason in IS_PACKAGED_VERSION='Elasticsearch core'
if [ "$IS_PACKAGED_VERSION" != "elasticsearch" ]; then
cat >&2 << EOF
Error: You must build the project with Maven or download a pre-built package
before you can run Elasticsearch. See 'Building from Source' in README.textile
or visit http://www.elasticsearch.org/download to get a pre-built package.
EOF
exit 1
fi |
@spinscale Yes, it has been introduced by commit 6051991 and should be fixed by #11348 |
rebased against master and tested against older and latest ubuntu, both now start ES. Also nice sideeffect with systemd, one catches stdout/stderr and thus finds out, in case of badly configured heap
LGTM, thanks so much for taking this up! |
e7476a0
to
da47f77
Compare
da47f77
to
340b7ef
Compare
Since SystemD is well documented and supported, we don't need to have different files for DEB/RPM packages.
Tested on OpenSUSE13, Fedora 21, Debian 8 and Ubuntu 15.04 beta2.