how do i know i need a reboot after a console based "upgrade"?

Florian Diesch diesch at spamfence.net
Thu Apr 19 19:21:34 UTC 2007


Chris Lemire <good_bye300 at yahoo.com> wrote:

> Florian Diesch <diesch at spamfence.net> wrote:
>
>     Florian Diesch wrote:
>
>     > "Tomoki Taniguchi" wrote:
>     >
>     >> when updating a system with the newest packages using the desktop
>     >> tools like synaptic,
>     >> if a package is upgraded that requires a reboot to take effect,
>     >> there is a little icon that shows up on the upper panel to let me know
>     >> i need to reboot.
>     >>
>     >> on a server system, if i do a "sudo apt-get upgrade" or "sudo aptitude
>     upgrade"
>     >> is there anyway to know i need a reboot?
>     >
>     > Check if /var/run/reboot-required exists after all packages are
>     installed.
>>
>     Sorry, it's only a part of the truth:
>
>     The kernel package executes
>     /usr/share/update-notifier/notify-reboot-required if it exists. The
>     package update-notifier provides a version of this script that creates
>     /var/run/reboot-required, you may create your own version of it.
>  
> The only time you need to reboot Linux is to use a newer kernel. 

Yes, but that was not the question. Maybe Tomoki wants to trigger some
action (like beeing notified) if a reboot is needed.

> I've seen many servers with uptimes of more than a year running on
> UPS.

IMHO it is often a good idea to have aplanned reboot like every half a
year or something.



   Florian
-- 
<http://www.florian-diesch.de/>




More information about the ubuntu-users mailing list