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

Whitelist service option #135

Open
helmo opened this issue Oct 19, 2018 · 4 comments
Open

Whitelist service option #135

helmo opened this issue Oct 19, 2018 · 4 comments
Labels

Comments

@helmo
Copy link

helmo commented Oct 19, 2018

Is there a way to whitelist services? ... meaning they may be restarted without confirmation.
This could be useful for non-critical services such as fail2ban which may be restarted without asking.

I've seen blacklist options and a flag to restart all services automatically ... but not the inverse.

Please correct me if I'm wrong here.

@liske liske added the wishlist label Oct 28, 2018
@liske
Copy link
Owner

liske commented Oct 28, 2018

This is not possible, yet. I've flagged it with wishlist since it might make needrestart less annoying for services known to be save to restarted.

@lukasjuhrich
Copy link

Hey, just chipping in to say that this (or any method of restarting stuff noninteractively) would be of immense help for us!

I've added needrestart to our monitoring system to report on the manual intervention that's necessary after automatic upgrades, and I have >20 Machines with a ton of services that need a restart. I would like to avoid having to log in to each of these machines just to type the command and press enter.

I was under the impression that needrestart -f noninteractive -r a would do precisely this (restarting services that are selected by default), but to my surprise, I was wrong.

@liske
Copy link
Owner

liske commented Dec 25, 2020

The automatic mode (-r a) should indeed restart any services which are not blacklisteted in $nrconf{override_rc}.

@lukasjuhrich
Copy link

The automatic mode (-r a) should indeed restart any services which are not blacklisteted in $nrconf{override_rc}.

Oh, thanks, you're right. I didn't use ansible correctly and misinterpreted the error.

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

No branches or pull requests

3 participants