# crontabs

crontab_path: /etc/cron.d/e2scrub_all
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
30 3 * * 0 root test -e /run/systemd/system || SERVICE_MODE=1 /usr/lib/x86_64-linux-gnu/e2fsprogs/e2scrub_all_cron
10 3 * * * root test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r


crontab_path: /etc/cron.d/php
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
# /etc/cron.d/php@PHP_VERSION@: crontab fragment for PHP
#  This purges session files in session.save_path older than X,
#  where X is defined in seconds as the largest value of
#  session.gc_maxlifetime from all your SAPI php.ini files
#  or 24 minutes if not defined.  The script triggers only
#  when session.save_handler=files.
#
#  WARNING: The scripts tries hard to honour all relevant
#  session PHP options, but if you do something unusual
#  you have to disable this script and take care of your
#  sessions yourself.

# Look for and purge old sessions every 30 minutes
09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi


crontab_path: /etc/cron.d/popularity-contest
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
37 17 * * *   root    test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond


crontab_path: /etc/cron.d/sysstat
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
# The first element of the path is a directory where the debian-sa1
# script is located
PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin

# Activity reports every 10 minutes everyday
5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

# Additional run at 23:59 to rotate the statistics file
59 23 * * * root command -v debian-sa1 > /dev/null && debian-sa1 60 2


crontab_path: /etc/cron.daily/bsdmainutils
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
#!/bin/sh
# /etc/cron.daily/calendar: BSD mainutils calendar daily maintenance script
# Written by Austin Donnelly <and1000@debian.org>

. /etc/default/bsdmainutils

[ x$RUN_DAILY = xtrue ] || exit 0

[ -x /usr/sbin/sendmail ] || exit 0

if [ ! -x /usr/bin/cpp ]; then
  echo "The cpp package is needed to run calendar."
  exit 1
fi

/usr/bin/calendar -a


crontab_path: /etc/cron.daily/logrotate
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
#!/bin/sh

# skip in favour of systemd timer
if [ -d /run/systemd/system ]; then
    exit 0
fi

# this cronjob persists removals (but not purges)
if [ ! -x /usr/sbin/logrotate ]; then
    exit 0
fi

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit $EXITVALUE


crontab_path: /etc/cron.daily/sysstat
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
#!/bin/sh
# Generate a daily summary of process accounting.  Since this will probably
# get kicked off in the morning, it is run against the previous day data.

#  our configuration file
DEFAULT=/etc/default/sysstat
#  default settings, overriden in the above file
ENABLED=false

[ ! -x /usr/lib/sysstat/sa2 ] && exit 0

# read our config
[ -r "$DEFAULT" ] && . "$DEFAULT" 

[ "$ENABLED" = "true" ]  || exit 0

exec /usr/lib/sysstat/sa2 -A


crontab_path: /etc/cron.daily/update-notifier-common
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
#!/bin/sh

set -e

[ -x /usr/lib/update-notifier/package-data-downloader ] || exit 0

# Try to rerun any package data downloads that failed at package install time.
/usr/lib/update-notifier/package-data-downloader


crontab_path: /etc/cron.weekly/update-notifier-common
crontab_created_timestamp: 2023-05-15 22:56:47
crontab_modified_timestamp: 2023-05-15 22:56:47
crontab_data:
#!/bin/sh

set -e

[ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ] || exit 0

sleep_then_check() {
    # Sleep for up to an hour to spread the load of checking for updates on
    # the Ubuntu infrastructure
    sleep $(shuf -i 1-3600 -n 1)
    # Check to see whether there is a new version of Ubuntu available
    /usr/lib/ubuntu-release-upgrader/release-upgrade-motd
}

sleep_then_check &


