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

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Universe i386
Package name shutdown-at-night
Package version 0.16
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.


Package Version Architecture Repository
shutdown-at-night_0.16_all.deb 0.16 all Ubuntu Universe
shutdown-at-night - - -


Name Value
cron -
cron-daemon -
ethtool -
fping -
ng-utils -
perl -
wakeonlan -
x11-utils -


Type URL
Binary Package shutdown-at-night_0.16_all.deb
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




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.
+ 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)

See Also

Package Description
shutter_0.93.1-1ubuntu1_all.deb feature-rich screenshot program
sibsim4_0.20-2_i386.deb align expressed RNA sequences on a DNA template
sic_1.1-5_i386.deb simple irc client (sic)
sickle_1.33-1_i386.deb windowed adaptive trimming tool for FASTQ files using quality
sidplay-base_1.0.9-7_i386.deb Music player for tunes from C64 and C128 (console)
sidplay_2.0.9-6ubuntu3_i386.deb Music player for tunes from C64 and C128 (console)
sidplayfp_1.4.0-1_i386.deb Fork of sidplay2, a C64 and C128 music player
sieve-connect_0.87-1_all.deb MANAGESIEVE protocol client
siggen_2.3.10-6build1_i386.deb Waveform generation tools
sigil-data_0.9.5+dfsg-0ubuntu1_all.deb multi-platform ebook editor - data files
sigil_0.9.5+dfsg-0ubuntu1_i386.deb multi-platform ebook editor
sigma-align_1.1.3-4_i386.deb Simple greedy multiple alignment of non-coding DNA sequences
signify-openbsd-keys_2015.1_all.deb Public keys for use with signify-openbsd
signify-openbsd_13-1_i386.deb Lightweight cryptographic signing and verifying tool
signify_1.14-3_all.deb Automatic, semi-random ".signature" rotator/generator