Package: reboot-notifier
Version: 0.5~bpo8+1
Severity: wishlist
Tags: patch
Dear Maintainer,
When reboot-notifier mails, the body is the content of /var/run/reboot-required
which is simply *** System restart required ***
Please consider also listing the packages requiring reboot.
This patch implements the enhancement:
--- /etc/cron.daily/reboot-notifier.org 2015-09-30 11:31:19.000000000 +0530
+++ /etc/cron.daily/reboot-notifier 2016-10-25 08:49:46.274071660 +0530
@@ -4,6 +4,9 @@
REBOOT_REQUIRED=/var/run/reboot-required
+body=$(<$REBOOT_REQUIRED)
+body+=$'\nPackages requring reboot:\n'
+body+=$(</var/run/reboot-required.pkgs)
if [ -s $REBOOT_REQUIRED -a -n "$NOTIFICATION_EMAIL" ] ; then
- mail -s "$HOSTNAME needs a reboot" $NOTIFICATION_EMAIL <
$REBOOT_REQUIRED
+ echo "$body" | mail -s "$HOSTNAME needs a reboot" $NOTIFICATION_EMAIL
fi
-- System Information:
Debian Release: 8.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages reboot-notifier depends on:
ii bsd-mailx [mailx] 8.1.2-0.20141216cvs-2
ii postfix [mail-transport-agent] 2.11.3-1
reboot-notifier recommends no packages.
reboot-notifier suggests no packages.
-- Configuration Files:
/etc/cron.daily/reboot-notifier changed [not included]
-- no debconf information