Small addition request.... does system need reboot

3 views
Skip to first unread message

Graham Williams

unread,
Oct 24, 2014, 3:38:54 PM10/24/14
to wa...@googlegroups.com
A new command request!

I am continually forgetting and having to search for the file that records whether the system needs a reboot (of course, not I've written this up I'll remember forever :-).

$ cat /var/run/reboot-required

If the file is there then its contents is:

*** System restart required ***

and I know it needs a reboot. In addition, /var/run/reboot-required.pkgs lists the packages that necessitate the reboot.

This is handled by the update-notifier-common package that is installed by default on Ubuntu (not sure about Debian).

Would be great to have

$ wajig reboot-required
*** System restart required ***
linux-image-3.13.0-37-generic
dbus
$ wajig reboot-required
No reboot required at this time.

$

Graham Williams

Tshepang Lekhonkhobe

unread,
Oct 24, 2014, 7:58:26 PM10/24/14
to wa...@googlegroups.com
Sounds like a why-not sort of thing. I suppose the command would just
fail if update-notifier was not installed, before even checking if the
file exists?

Graham Williams

unread,
Oct 25, 2014, 2:13:43 AM10/25/14
to wa...@googlegroups.com
Yes I think so - with a message to that effect.

Graham Williams


--
You received this message because you are subscribed to the Google Groups "wajig" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wajig+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at http://groups.google.com/group/wajig.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages