-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
systemd-pre-exec script fails silently #16134
Comments
In /usr/lib/systemd/system/elasticsearch.service is
|
Sure, but why is |
@royaldark I agree it should be as I think this situation trips a lot of people up. Changing it will produce more logging in the journal than some system operators are use to, but that's an easier problem to diagnose and address than the opposite problem of not having any logging at all at the critical moment when the system is starting up. I opened #16159. |
On systemd-based distros (CentOS in this case), there is a script
bin/elasticsearch-systemd-pre-exec
which runs before starting the main process. This script ensures theCONF_FILE
setting is empty, as it has apparently been removed. However, the error message is echoed to stdout, not stderr, so systemd does not pick up the message, resulting in a very confusing, silent failure.The text was updated successfully, but these errors were encountered: