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

Bug#777527: unblock (pre-approval): shutdown-at-night/0.15



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

Please consider unblocking planned upload of package shutdown-at-night.

+  [ Wolfgang Schweer ]
+  * Adjust the 'who' command to exclude the special case of gdm3 greeter
+    running as user '(unknown)' to be assumed as a logged in user
+    (Closes: #775608).
+

-> The Debian Edu team has fixed non-working automatic system shutdowns
if GDM3 is used. 

For the default Debian Edu system installation this issue should be fixed
in Debian jessie. Otherwise we will expect complains from various schools
reporting non-shutting down diskless and diskful workstations and thin
clients.

light+love,
Mike


unblock shutdown-at-night/0.15

-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
diff -Nru shutdown-at-night-0.14/debian/changelog shutdown-at-night-0.15/debian/changelog
--- shutdown-at-night-0.14/debian/changelog	2014-08-30 10:18:30.000000000 +0200
+++ shutdown-at-night-0.15/debian/changelog	2015-02-09 10:03:24.000000000 +0100
@@ -1,3 +1,12 @@
+shutdown-at-night (0.15) unstable; urgency=medium
+
+  [ Wolfgang Schweer ]
+  * Adjust the 'who' command to exclude the special case of gdm3 greeter
+    running as user '(unknown)' to be assumed as a logged in user
+    (Closes: #775608).
+
+ -- Mike Gabriel <sunweaver@debian.org>  Mon, 09 Feb 2015 10:03:22 +0100
+
 shutdown-at-night (0.14) unstable; urgency=low
 
   * Updated Standards-Version from 3.9.4 to 3.9.5.  No changes needed
diff -Nru shutdown-at-night-0.14/shutdown-at-night shutdown-at-night-0.15/shutdown-at-night
--- shutdown-at-night-0.14/shutdown-at-night	2014-03-24 12:26:33.000000000 +0100
+++ shutdown-at-night-0.15/shutdown-at-night	2015-02-09 10:02:50.000000000 +0100
@@ -98,7 +98,7 @@
 
 # Return true if local user is logged in, false otherwise
 is_local_user() {
-    if [ "$(who)" ] ; then
+    if [ "$(who | grep -v '\(unknown\)')" ] ; then
         return 0
     else
         return 1

Reply to: