[ubuntu-uk] Checking if a System restart is required

Paul Willis paul.willis at me.com
Thu Apr 21 16:13:18 UTC 2011


On 21 Apr 2011, at 16:55, Alan Pope wrote:

> On 21 April 2011 16:52, Paul Willis <paul.willis at me.com> wrote:
>> Occasionally, after running...
>> sudo apt-get update && sudo apt-get upgrade -y
>> ...my server it needs a reboot. Trouble is I don't see the *** System restart required *** message until next time I log in.
>> 
>> I usually log out and back in again straight after running the update but I'm sure there must be a command to check if a reboot is required without doing that.
> 
> /usr/lib/update-notifier/update-motd-reboot-required
> 
> e.g.:-
> 
> $ /usr/lib/update-notifier/update-motd-reboot-required
> *** System restart required ***
> 
> or..
> 
> $ cat /var/run/reboot-required
> *** System restart required ***
> 
> Al.

Exactly what I needed. Thanks very much for the speedy reply.

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20110421/7e79de23/attachment.html>


More information about the ubuntu-uk mailing list