One of the packages that got lost in the transition from Debian wheezy to jessie was the update-notifier-common package which could be used to receive notifications when a reboot is needed (for example, after installing a kernel update).
I decided to wrap this piece of functionality along with a simple cron job and create a new package: reboot-notifier.
Because it uses the same file (/var/run/reboot-required
) to indicate
that a reboot is needed, it should work fine with any custom scripts that
admins might have written prior to jessie.
If you're running sid or strech, all you need to do is:
apt install reboot-notifier
On jessie, you'll need to add the backports
repository to
/etc/apt/sources.list
:
deb http://httpredir.debian.org/debian jessie-backports main
Dear Francois Marier,
Does needrestart and needrestart-session do the same thing ?
See :-
$ aptitude show needrestart-session Package: needrestart-session
State: installed Automatically installed: no Version: 0.3-2 Priority: optional Section: admin Maintainer: Patrick Matthäi [email protected] Architecture: all Uncompressed Size: 187 k Depends: perl, needrestart (>= 2.0), libnet-dbus-perl, libproc-processtable-perl, libwx-perl, wmctrl, policykit-1 Description: check for processes need to be restarted in user sessions needrestart checks which processes need to be restarted after library upgrades. needrestart-session implements a notification of user sessions about their obsolete processes after system upgrades. Homepage: https://github.com/liske/needrestart-session
Now, is there a need for reboot-notifier if you have the above installed ?