tags 866105 upstream fixed-upstream
thanks

Re,

Marc Haber <[email protected]> writes:

> 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?

Yes. I've added the word 'mode' to the config file (upstream commit
16fde7c).


>> > 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.

I've added support for the NEEDRESTART_MODE environment variable which
can be used to pass the restart mode (upstream patch 6269672).


HTH & Thanks,
Thomas


> 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
>

-- 

    ::  WWW:                        https://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:[email protected]  :::
    ::  flickr:             https://www.flickr.com/photos/laugufe/  ::

Reply via email to