-
Notifications
You must be signed in to change notification settings - Fork 76
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
Sonarqube blacklist not possible #256
Comments
If you run |
@koitsu Thanks for your explanation. Understand now how this works in the background 👍 This is the output
And yes, it is a wrapper script, for a Java application (Source) |
For my specific usage (nexus in a docker), I had also to teach needrestart to ignore some files. Rather than ignoring the whole service (as suggested in #59 that in my case would make the whole containerd service to be restarted), I just ignored files from the mounted volume. In fact there are multiple ignore mechanisms. The logs user@machine:~# needrestart -v
[main] eval /etc/needrestart/needrestart.conf
[main] needrestart v3.5
[main] running in root mode
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] systemd detected
[Core] #760 is a NeedRestart::Interp::Python
[Python] #760: source=/usr/bin/fail2ban-server
[Core] #1441 is a NeedRestart::Interp::Java
[Core] #1441 uses obsolete script file(s):
[Core] #1441 /nexus-data/cache/bundle191/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle244/version0.0/nexus-blobstore-s3-3.63.0-01.jar-embedded/aws-java-sdk-dynamodb-1.12.299.jar
[Core] #1441 /nexus-data/cache/bundle88/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle210/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle95/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle80/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle244/version0.0/nexus-blobstore-s3-3.63.0-01.jar-embedded/aws-java-sdk-cloudwatch-1.12.299.jar
[Core] #1441 /nexus-data/cache/bundle293/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle94/version0.0/bundle.jar
[Core] #1441 /nexus-data/cache/bundle360/version0.0/bundle.jar
[…] The full file: # Ignore nexus stuff
# ignore deleted JNA files (cf. https://github.com/liske/needrestart/commit/30d3b27033bacfc7650690a92a132b8bfe977980)
push(@{$nrconf{blacklist_mappings}}, qr#/jna\d+\.tmp( \(deleted\))?$#);
# ignore obsolete script files
push(@{$nrconf{blacklist_interp}}, qr(^/nexus-data)); Notes: |
Hi @liske,
I've a Debian server on which Sonarqube (Community EditionVersion 9.4 build 54424) is installed. When running needrestart, it always reports that the sonarqube service needs a restart. Unfortunately adding it to the blacklist didn't work. Would be nice if you could check this. Thanks! 🙂
systemctl edit --full sonarqube
cat /etc/needrestart/conf.d/blacklist_mappings.conf
The text was updated successfully, but these errors were encountered: