Skip to content
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

elasticsearch needrestart #134

Closed
teadur opened this issue Oct 16, 2018 · 1 comment
Closed

elasticsearch needrestart #134

teadur opened this issue Oct 16, 2018 · 1 comment

Comments

@teadur
Copy link

teadur commented Oct 16, 2018

I have problem that needrestart reports elasticsearch as needing to be restart, but that isnt actualy the case.

[main] eval /etc/needrestart/needrestart.conf
[main] needrestart v2.11
[main] running in root mode
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] detected systemd
[main] #2065 uses deleted /tmp/elasticsearch.LCwwd2Uu/jna--1985354563/jna7872475812272732759.tmp
[main] #2065 is not a child
[main] #2065 exe => /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
[Core] #2065 is a NeedRestart::Interp::Java
[Core] #2065 source is UNKNOWN
[main] #2065 is elasticsearch.service

The deleted file chnages with every restart so it seems like part of elasticsearch normal startup process.

Is it possible to fix/hide it somehow from needrestart side with configuration?

@liske
Copy link
Owner

liske commented Oct 28, 2018

It should be sufficient to add it to the blacklist_mappings setting somewhere in /etc/needrestart/conf.d:

push @{ $nrconf{blacklist_mappings} }, qr(^/tmp/elasticsearch\.);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants