tags 819824 fixed-upstream thanks
Hi, the easy mode is now using debconf for user notification and is part of the needrestart 2.8 release. HTH, Thomas On Sun, May 08, 2016 at 12:34:08PM +0200, Thomas Liske wrote: > Hi Patrick, > > I've added a first implementation of a easy mode: > > # needrestart -r l -m e > Scanning processes... > > Scanning candidates... > > Scanning linux images... > > Some services need to be restarted! > Some user sessions running outdated binaries! > > This system runs outdated binaries, you should consider rebooting! > For more details, run 'needrestart -m a'. > > > The new CLI option '-m' (there is a config file option, too) can be > used to switch between (e)asy and (a)dvanced mode. I will put the > final notification ("This system...") into debconf, so debconf will > notify the user using its own UI implementation. > > The default configuration is using advanced mode and interactive > restarts - but you could easily override it by a config file in > /etc/needrestart/conf.d/. > > There is still some testing and tuning required, maybe you could give > it a try? If you have needrestart 2.7-1 installed it should be suffice > to grab the needrestart command from git > (i.e. https://raw.githubusercontent.com/liske/needrestart/master/needrestart). > > > HTH & TIA, > Thomas > > > On Sun, Apr 24, 2016 at 02:08:51PM +0200, Thomas Liske wrote: > > tags 819824 upstream > > thanks > > > > > > Hi Patrick, > > > > On Sat, Apr 02, 2016 at 07:18:39PM +0000, Patrick Schleizer wrote: > > > we are wondering if needrestart should be installed by default in Whonix. > > > > > > When needrestart is automatically run during apt-get dist-upgrade, > > > I am concerned, that its output by default is too technical and verbose > > > and will therefore add more confusion. > > > > ACK > > > > > Therefore I am hereby kindly asking if you could add an easy mode please? > > > > > > - can be enabled by dropping some file into /etc/needrestart/conf.d > > > - no automatic restart > > > - it's output would be limited to the following > > > > > > > Services need to be restarted. Reboot recommended. > > > > For more information, see 'man needrestart'. > > > > > > Or does the current configuration already allow configuring needrestart > > > that way? > > > > to disable any restarts you could try: > > > > # Restart services (l)ist only, (i)nteractive or (a)utomatically. > > $nrconf{restart} = 'l'; > > > > But it will still print the commands to restart the affected services. > > To reduce the output to a minimum as in your example requires changes > > in needrestart. > > > > > > HTH, > > Thomas > > > > -- > > > > :: WWW: https://fiasko-nw.net/~thomas/ :: > > ::: Jabber: xmpp:tho...@jabber.fiasko-nw.net ::: > > :: flickr: https://www.flickr.com/photos/laugufe/ :: > > > -- > > :: WWW: https://fiasko-nw.net/~thomas/ :: > ::: Jabber: xmpp:tho...@jabber.fiasko-nw.net ::: > :: flickr: https://www.flickr.com/photos/laugufe/ :: > -- :: WWW: https://fiasko-nw.net/~thomas/ :: ::: Jabber: xmpp:tho...@jabber.fiasko-nw.net ::: :: flickr: https://www.flickr.com/photos/laugufe/ ::