[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#717436: pu: shutdown-at-night - avoid daily email from cron when enabled



Package:  release.debian.org
Severity: normal
User:     release.debian.org@packages.debian.org
Usertags: unblock
User:     debian-edu@lists.debian.org
Usertags: debian-edu

Here is a request to approve an upload of shutdown-at-night to wheezy,
to fix a bug Debian Edu would like to have fixed in our Debian Edu
Wheezy release.  The same fix was uploaded as version 0.11 to
unstable with this changelog entry:

  * Quiet down cron job to wake up client to not complain when fping
    notice they are unavailable.

We want to make sure schools using Debian Edu and enabling the power
saving feature provided by shutdown-at-night do not end up filling /var/
with emails from cron.  Without this fix, a message like this is printed
from the wakeupclient script for every client it try to wake up:

  ICMP Host Unreachable from 10.0.2.2 for ICMP Echo sent to dell.intern (10.0.16.20)
  ICMP Host Unreachable from 10.0.2.2 for ICMP Echo sent to dell.intern (10.0.16.20)
  ICMP Host Unreachable from 10.0.2.2 for ICMP Echo sent to dell.intern (10.0.16.20)

This is the change I want to include:

Index: wakeupclients
===================================================================
--- wakeupclients       (revision 76266)
+++ wakeupclients       (working copy)
@@ -63,7 +63,7 @@
 
 sub get_alive_list {
     my @addresses = @_;
-    return split(/\s+/, `fping -a @addresses`);
+    return split(/\s+/, `fping -a @addresses 2>/dev/null`);
 }
 
 sub logmsg {

Please let us know if this is OK before we upload, and tell us which
version number to use for this upload.

-- 
Happy hacking
Petter Reinholdtsen


Reply to: