Re: [ubuntu-uk] Checking if a System restart is required
On Thursday 21 Apr 2011 16:52:26 Paul Willis wrote: > Hi > > 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. > > Anybody know? > > Cheers > > Paul I've been using Ubuntu 10.10 on a server for about 4 months now and I've never seen a notification that I've needed to reboot even after installing a new kernel. -- Registered Linux User #466407 http://counter.li.org -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Checking if a System restart is required
On 21 Apr 2011, at 16:55, Alan Pope wrote: > On 21 April 2011 16:52, Paul Willis 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 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Checking if a System restart is required
On Thu, 2011-04-21 at 16:52 +0100, Paul Willis wrote: > sudo apt-get update && sudo apt-get upgrade -y > > ...my server it needs a reboot. Of course, if you're doing it at the command line, it's pretty easy to tell if a reboot is required. If the kernel upgraded, reboot. If not, you don't have to. No doubt someone on this list will correct me on the other packages that trigger that output. Cueing them in 3 ... 2 ... 1 ... Regards, Tyler -- "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. -- Andrew S. Tanenbaum -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Checking if a System restart is required
On 21 April 2011 16:52, Paul Willis 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. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
[ubuntu-uk] Checking if a System restart is required
Hi 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. Anybody know? Cheers Paul -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/