On Tue, Jul 21, 2015 at 01:17:23AM +0200, Thomas Liske wrote:
> Re,
> 
> On 07/07/2015 10:22 PM, Rodrigo Campos wrote:
> > Thanks a lot for the quick response!
> > 
> > I tried but didn't understand it. How can I make it interactive or auto? 
> > Using
> > -b with -r doesn't seem to do anything.
> 
> The batch mode (-b) just reports pending restarts in a way easy to reuse
> it by other scripts.

But I want it to restart the services.

> 
> > I want to restart the daemons (sometimes choose which), but without the 
> > progress
> > bar, ideally. Can this be done with "-b" ?
> > 
> > Sorry if it can, I've been playing with it and didn't manage to do it.
> 
> There is no "--quiet" option. To auto restart daemons you might use `-r
> a` (and redirect the output into /dev/null).
> 
> To make needrestart more quiet you could use the verbose mode and
> redirect the stderr to /dev/null (this sounds somewhat weirrd ;-).
> 
> > # needrestart -v 2> /dev/null 
> > Running kernel seems to be up-to-date.
> > Services to be restarted:
> > Restart accounts-daemon.service? [Ynas?] ^C

It's a good aproximation, but filtering stderr seems like a "no-no".

Is there a reason you don't want a "--quiet" option ?





Thanks a lot,
Rodrigo


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to