Package: shutdown-at-night
Version: 0.8
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following:
* Apply patch from Mike Gabriel clarifying reasons for host(s) not
shutting down. (LP: #608616)
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500,
'oneiric-proposed'), (500, 'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-7-generic (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
diff -Nru shutdown-at-night-0.8/shutdown-at-night shutdown-at-night-0.8ubuntu1/shutdown-at-night
--- shutdown-at-night-0.8/shutdown-at-night 2010-02-01 08:37:25.000000000 -0500
+++ shutdown-at-night-0.8ubuntu1/shutdown-at-night 2011-08-04 22:17:04.000000000 -0400
@@ -82,5 +82,10 @@
fi
prepare_wakeonlan || fatal "unable to enable wake-on-lan - aborting shutdown."
shutdown -h 5 "Unused host being turned off for the night (cron)." < /dev/null > /dev/null 2>&1 &
+ else
+ logger -t shutdown-at-night "client $hostname is in use; shutdown sequence will NOT be initiated."
fi
+else
+ logger -t shutdown-at-night "shutdown-at-night ist not enabled for client $hostname."
fi
+