Great, thanks! Perhaps checkrestart could be updated to check that file too?
-Steve
On 2 March 2011 17:11, Darac Marjal <mailinglist@darac.org.uk> wrote:
> On Wed, Mar 02, 2011 at 04:08:15PM +0000, Steven Ayre wrote:
>> I just upgraded the linux kernel package on a Lenny server and then
>> ran checkrestart. It reported a few services that needed restarting
>> because the openssl package had also been updated, but it didn't say
>> anything about the fact that I was running an earlier kernel than the
>> one installed.
>>
>> Are there any scripts that can detect that a reboot is needed for a
>> kernel update? (Or perhaps a reboot wasn't needed in this case?)
>
> I believe that current kernel packages (I'm running sid, so I don't know
> if this has made it through to Lenny or not) touch a file
> '/var/run/reboot-required'. Various utilities (byobu, update-notifier and
> so on) monitor or the presence of this file and, if it exists, display a
> notification to the user.
>
> It should be a simple enough task to execute [ -f
> /var/run/reboot-required ] in some sort of script.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQIcBAEBCgAGBQJNbno0AAoJEKB7YbRsd8TG5T4P+wTJv6by9x 4F9QIpjDSnbgcl
> d1zW97eeKzOsMH3yDM+/fKOA5yTESMTFR2N0YGspR9g6ucV0KR6N+3ocK/rOWL5W
> KmcgBbM5sRy+fj4gvANISt7uPu3O9qf79wzaYKl8c4vbxbT6mv Z72zyEWNvEVvgh
> MGH7J4OJnYINncn+KCMTxZM2l762mMbp3T8MIf+SL+2jwWSOKW Ow7N7XG8OFrgIt
> e8hCe6/C6USp0YinVtu9urWyX4G/aXNjkvzmGWWaGL/QlJ2PVZp2nOu/0btXKCj5
> RO5sYPTermga1eGFs8XvhGhVwgHbd5jgIBGuRcKjKANzprfU3t mkVEltZOv+Io+k
> Py35C7f5JJatVxUYKblLDk47GdS7tgLrAyq4z7yYwM1gBpciKy CWH3WDLuNhdfyV
> U1+GbrVrimjxJAwQIt8GdXJOjbXe+nUC5KgqMhYn205YDdezMR aUesVgy8CeFUnd
> AKA7PTJsYW+/f1+Rltg7rBJeDedeqtYZF0ZBc4mowqJff5dMapWLWe8hmcZQI9 Nu
> IsCJjkP1kbpJiSO3i/GYvUKJJUtF1zmiGoAUVWSADAhgUUatwmZ8iliPdZ9flgF4
> gE/iejGnlb59GhUxRRmz7+jiMgn5Bz7/PHlZbjg/6/0YCTSAOHa4zxQJ2PGdfe8r
> WD/m4HZwFraMDcep3gv1
> =fD9/
> -----END PGP SIGNATURE-----
>
>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=POQDovSfs+C-6Lq=ei_pqM_Z-8udo78G5p4Sm@mail.gmail.com">http://lists.debian.org/AANLkTi=POQDovSfs+C-6Lq=ei_pqM_Z-8udo78G5p4Sm@mail.gmail.com
03-04-2011, 07:51 PM
Henrique de Moraes Holschuh
checkrestart + out-of-date kernel
On Wed, 02 Mar 2011, Steven Ayre wrote:
> Great, thanks! Perhaps checkrestart could be updated to check that file too?
Please file a wishlist bug. It will depend on whether the maintainer thinks
it is something the tool should warn you about or not.
checkrestart is commonly used to *avoid* rebooting, after all.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110304205152.GG15309@khazad-dum.debian.net">http://lists.debian.org/20110304205152.GG15309@khazad-dum.debian.net