/usr/lib/pm-utils/sleep.d/95anacron is in anacron 2.3-14ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh
# This script makes anacron jobs start to run when the machine is woken up.
# For a laptop, these are the closest parallels to turning on a desktop.
# The /etc/init.d/anacron script now normally tries to avoid running anacron
# unless on AC power, so as to avoid running down the battery. (Things like
# the slocate updatedb cause a lot of I/O.) Rather than trying to
# second-guess which events reflect having or not having power, we just try to
# run anacron every time and let it abort if there's no AC. You'll see a
# message on the cron syslog facility (typically /var/log/cron) if it does
# run.
case $1 in
resume|thaw)
start -q anacron || :
;;
suspend|hibernate)
stop -q anacron || :
;;
esac
|