[debian-edu-commits] debian-edu/ 01/07: wakeupclients: Add support for a blockage file that prevents from other clients being woken up.
Mike Gabriel
sunweaver at debian.org
Tue Feb 23 20:51:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository shutdown-at-night.
commit 16a3eb7d59baae84a94214609b604d157e3fc06a
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Feb 23 21:39:57 2016 +0100
wakeupclients: Add support for a blockage file that prevents from other clients being woken up.
---
debian/changelog | 5 +++++
wakeupclients | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 33ccdda..ead5281 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
shutdown-at-night (0.17) UNRELEASED; urgency=medium
+ [ Wolfgang Schweer ]
* Fix typos in xsession test. (Closes: #802541).
* Fix typo in acpiwakeup code. (Closes: #802542).
* Set RTC based self-wake-up to disabled as default behaviour. This is
@@ -10,6 +11,10 @@ shutdown-at-night (0.17) UNRELEASED; urgency=medium
+ Add configuration information to the README file.
+ Adjust the code to make configuration possible.
+ [ Mike Gabriel ]
+ * wakeupclients: Add support for a blockage file that prevents from
+ other clients being woken up.
+
-- Wolfgang Schweer <wschweer at arcor.de> Sat, 17 Oct 2015 19:25:29 +0200
shutdown-at-night (0.16) unstable; urgency=medium
diff --git a/wakeupclients b/wakeupclients
index b70af88..6b463bc 100755
--- a/wakeupclients
+++ b/wakeupclients
@@ -22,6 +22,7 @@ use warnings;
use Sys::Syslog qw(openlog syslog closelog LOG_NOTICE);
my $delay = 5;
+my $wakeupblock = "/etc/shutdown-at-night/shutdown-at-night-nowakeup-others";
my $wakeuplist = "/etc/shutdown-at-night/clients";
my $wakeupgenerator = "/etc/shutdown-at-night/clients-generator";
@@ -36,6 +37,11 @@ sub load_clients {
}
}
+if ( -f $wakeupblock) {
+ logmsg("not waking other clients, blocked by $wakeupblock");
+ exit 0;
+}
+
# Locate hosts to wake up, from file
if ( -f $wakeuplist ) {
if (open(CLIENTS, "<", $wakeuplist)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/shutdown-at-night.git
More information about the debian-edu-commits
mailing list