On Tue, 2014-04-22 at 13:21 +0200, Thomas Liske wrote: > I've no idea how to detect outdated kernels in a generic way. In > apt-dater-host I'd tried to implement such detection... but it is only > a fragile heuristic. It is distri specific (needrestart should work on > anyGNU/Linux).
I wasn't able to find where that heuristic is located in apt-dater-host, could you point it out? > On Debian based system you could install update-notifier-common. This > ships /etc/kernel/postinst.d/update-notifier which creates > /var/run/reboot-required after kernel installation. This is Debian's way > for kernel-package based kernel installations... but no generic solution. That is probably the best way for Debian. I would suggest not depending on update-notifier-common though because that is going to go away, so it would be best if needrestart installed its own kernel update hook. https://packages.debian.org/unstable/update-notifier-common > Looking for ideas/comments. There is another implementation of this idea here, no idea how generic it is but it was written by the Debian sysadmins for their use. http://sources.debian.net/src/nagios-plugins-contrib/9.20140106/dsa/checks/dsa-check-running-kernel -- bye, pabs http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part