On Fri, Nov 03, 2017 at 11:14:53AM +0100, Thomas Liske wrote:
> Marc Haber <[email protected]> writes:
>
> > I didn't find any possibility in needrestart.conf to set the equivalent
> > of the -r option. Maybe that's a documentation issue?
>
> indeed there is the $nrconf{restart} config option. It might be
> confusing since the word 'mode' is *not* used the configuration comment.
It is. searched for "mode" and "interactive", and missed the latter
because it's (i)nteractive in the comments.
So, I just dump a foo.conf in /etc/needrestart/conf.d/ containing
$nrconf{restart}="a" and I'm fine?
> > If I can set the equivalent of -r a from a /etc/needrestart/conf.d/
> > snippet, I'm fine and this reprt can be closed.
>
> An environment variable might be still useful since they can be easely
> used in some CM or automation tools (especially in ansible).
Agreed, yes.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421