shutdown-at-night - System to shut down clients at night, and wake them in the morning

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe i386
Package name: shutdown-at-night
Package version: 0.16
Package release:
Package architecture: all
Package type: deb
Installed size: 30 B
Download size: 8.23 KB
Official Mirror:
With this tool you can schedule regular shutdowns of workstations in the evening, and also wake them up every morning, using either nvram-wakeup, ACPI wakeup or wake-on-lan. For the wake-on-lan wake-up sequence you need one awake machine on your local network / subnet. This can be a server machine or a client machine that got just previously woken up by nvram-wakeup. The shutdown sequence will be initiated hourly after 4pm via a CRON job. However, only machines that appear inactive / unused will be shut down. Machines that are currently in use will remain up and running. The Shutdown-at-Night tool can be activated via a config file or via membership in a NIS netgroup called shutdown-at-night-hosts.



    Source package: shutdown-at-night

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install shutdown-at-night deb package:
      # sudo apt-get install shutdown-at-night


    • /etc/cron.d/shutdown-at-night
    • /usr/lib/shutdown-at-night/shutdown-at-night
    • /usr/lib/shutdown-at-night/wakeupclients
    • /usr/share/doc/shutdown-at-night/README
    • /usr/share/doc/shutdown-at-night/changelog.gz
    • /usr/share/doc/shutdown-at-night/copyright


    2015-10-14 - Mike Gabriel <> shutdown-at-night (0.16) unstable; urgency=medium [ Wolfgang Schweer ] * Fix the xsession test to match the special case of gdm3 greeter no longer running gdm-simple-greeter. (Closes: #787566). [ Mike Gabriel ] * Provide support for blacklisting shutdown of individual hosts when NIS netgroups are used for controlling shutdown-at-night. (Use "no-shutdown-at-night-hosts" NIS netgroup for black listing hosts that should not shutdown). * Rename NIS netgroup for blacklisting shutdowns to shutdown-at-night-hosts-blacklist. Thanks to Petter Reinholdtsen for feedback. * debian/control: + Bump Standards: to 3.9.6. No changes needed. + Process with wrap-and-sort (options: -ast). + Update D (shutdown-at-night) for cron alternatives: cron | cron-daemon (Closes: #796875). * shutdown-at-night, wakeupclients: Add copyright header to files. * Add COPYING file (containing GPL-2(+)) license. * debian/copyright: + Switch to DEP-5 compliant format.

    2015-02-17 - Holger Levsen <> 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).

    2014-08-30 - Petter Reinholdtsen <> shutdown-at-night (0.14) unstable; urgency=low * Updated Standards-Version from 3.9.4 to 3.9.5. No changes needed * Raise debhelper compat level from 5 to 9. * Replace cdbs with dh in rules file. The minimal verision is enough. Drop cdbs dependency. * Add Alexander Alemayhu as uploader.

    2013-11-22 - Petter Reinholdtsen <> shutdown-at-night (0.13) unstable; urgency=low [ Mike Gabriel ] * Package becomes team-maintained: Debian Edu Packaging Team. * debian/control: + Package migrated to Git. Update Vcs-*: fields and point to Git on Alioth. + Bump Standards: to 3.9.4. No changes necessary. + Improve LONG_DESCRIPTION. + Mention ACP wakeup functionality in LONG_DESCRIPTION. * debian/source/format: + Add file. Use format 1.0 to match capabilities of Debian Edu's dak. [ Petter Reinholdtsen ] * Rewrite logic checking if a host is unused to look for the KDM, Gnome or lightdm login screen to confirm the X sessions are unused (Closes: #729553). * Add depend on x11-utils for the xlsclients tool used to check unused X sessions.

    2013-10-23 - Mike Gabriel <> shutdown-at-night (0.12) unstable; urgency=low [ Petter Reinholdtsen ] * Add support for using the ACPI RTC wakeup interface to wake up the machine (Closes: #717441). * Correct time zone calculations, try to ensure that the 07:00 wake up time is in the local time zone and not UTC. * Make sure to syslog that ACPI RTC is used to set wakeup time when it is used. [ Mike Gabriel ] * The -i <host-ip> option in the wakeonlan executable is only useful on networks with static ARP tables available. For networks using dynamic ARP tables (common with most switches), a broadcast address instead of a host IP should be given here. The wakeonlan default ( is just fine for most network setups. So we omit the -i <host-ip> option completely when calling wakeonlan in the wakeupclients script. * debian/control: + Add myself to Uploaders: field.

    2013-07-15 - Petter Reinholdtsen <> shutdown-at-night (0.11) unstable; urgency=low * Quiet down cron job to wake up client to not complain when fping notice they are unavailable. * Add support for extending the "busy" detection in shutdown-at-night by adding code to run hooks in /etc/shutdown-at-night/unused.d and /usr/lib/shutdown-at-night/unused.d. (Closes: #619950)