Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/cron.weekly/0anacron:#!/bin/sh
- /etc/cron.weekly/0anacron:#
- /etc/cron.weekly/0anacron:# anacron's cron script
- /etc/cron.weekly/0anacron:#
- /etc/cron.weekly/0anacron:# This script updates anacron time stamps. It is called through run-parts
- /etc/cron.weekly/0anacron:# either by anacron itself or by cron.
- /etc/cron.weekly/0anacron:#
- /etc/cron.weekly/0anacron:# The script is called "0anacron" to assure that it will be executed
- /etc/cron.weekly/0anacron:# _before_ all other scripts.
- /etc/cron.weekly/0anacron:
- /etc/cron.weekly/0anacron:test -x /usr/sbin/anacron || exit 0
- /etc/cron.weekly/0anacron:anacron -u cron.weekly
- /etc/cron.weekly/apt-xapian-index:#!/bin/sh
- /etc/cron.weekly/apt-xapian-index:
- /etc/cron.weekly/apt-xapian-index:CMD=/usr/sbin/update-apt-xapian-index
- /etc/cron.weekly/apt-xapian-index:
- /etc/cron.weekly/apt-xapian-index:# ionice should not be called in a virtual environment
- /etc/cron.weekly/apt-xapian-index:# (similar to man-db cronjobs)
- /etc/cron.weekly/apt-xapian-index:egrep -q '(envID|VxID):.*[1-9]' /proc/self/status || IONICE=/usr/bin/ionice
- /etc/cron.weekly/apt-xapian-index:
- /etc/cron.weekly/apt-xapian-index:# Check if we're on battery
- /etc/cron.weekly/apt-xapian-index:if which on_ac_power >/dev/null 2>&1; then
- /etc/cron.weekly/apt-xapian-index: on_ac_power >/dev/null 2>&1
- /etc/cron.weekly/apt-xapian-index: ON_BATTERY=$?
- /etc/cron.weekly/apt-xapian-index:
- /etc/cron.weekly/apt-xapian-index: # Here we use "-eq 1" instead of "-ne 0" because
- /etc/cron.weekly/apt-xapian-index: # on_ac_power could also return 255, which means
- /etc/cron.weekly/apt-xapian-index: # it can't tell whether we are on AC or not. In
- /etc/cron.weekly/apt-xapian-index: # that case, run update-a-x-i nevertheless.
- /etc/cron.weekly/apt-xapian-index: [ "$ON_BATTERY" -eq 1 ] && exit 0
- /etc/cron.weekly/apt-xapian-index:fi
- /etc/cron.weekly/apt-xapian-index:
- /etc/cron.weekly/apt-xapian-index:# Rebuild the index
- /etc/cron.weekly/apt-xapian-index:if [ -x "$CMD" ]
- /etc/cron.weekly/apt-xapian-index:then
- /etc/cron.weekly/apt-xapian-index: if [ -x "$IONICE" ]
- /etc/cron.weekly/apt-xapian-index: then
- /etc/cron.weekly/apt-xapian-index: nice -n 19 $IONICE -c 3 $CMD --quiet
- /etc/cron.weekly/apt-xapian-index: else
- /etc/cron.weekly/apt-xapian-index: nice -n 19 $CMD --quiet
- /etc/cron.weekly/apt-xapian-index: fi
- /etc/cron.weekly/apt-xapian-index:fi
- /etc/cron.weekly/fstrim:#!/bin/sh
- /etc/cron.weekly/fstrim:# call fstrim-all to trim all mounted file systems which support it
- /etc/cron.weekly/fstrim:set -e
- /etc/cron.weekly/fstrim:
- /etc/cron.weekly/fstrim:# This only runs on Intel and Samsung SSDs by default, as some SSDs with faulty
- /etc/cron.weekly/fstrim:# firmware may encounter data loss problems when running fstrim under high I/O
- /etc/cron.weekly/fstrim:# load (e. g. https://launchpad.net/bugs/1259829). You can append the
- /etc/cron.weekly/fstrim:# --no-model-check option here to disable the vendor check and run fstrim on
- /etc/cron.weekly/fstrim:# all SSD drives.
- /etc/cron.weekly/fstrim:exec fstrim-all
- /etc/cron.weekly/man-db:#!/bin/sh
- /etc/cron.weekly/man-db:#
- /etc/cron.weekly/man-db:# man-db cron weekly
- /etc/cron.weekly/man-db:
- /etc/cron.weekly/man-db:set -e
- /etc/cron.weekly/man-db:
- /etc/cron.weekly/man-db:iosched_idle=
- /etc/cron.weekly/man-db:# Don't try to change I/O priority in a vserver or OpenVZ.
- /etc/cron.weekly/man-db:if ! egrep -q '(envID|VxID):.*[1-9]' /proc/self/status && \
- /etc/cron.weekly/man-db: ([ ! -d /proc/vz ] || [ -d /proc/bc ]); then
- /etc/cron.weekly/man-db: iosched_idle='--iosched idle'
- /etc/cron.weekly/man-db:fi
- /etc/cron.weekly/man-db:
- /etc/cron.weekly/man-db:if ! [ -d /var/cache/man ]; then
- /etc/cron.weekly/man-db: # Recover from deletion, per FHS.
- /etc/cron.weekly/man-db: mkdir -p /var/cache/man
- /etc/cron.weekly/man-db: chown man:root /var/cache/man || true
- /etc/cron.weekly/man-db: chmod 2755 /var/cache/man
- /etc/cron.weekly/man-db:fi
- /etc/cron.weekly/man-db:
- /etc/cron.weekly/man-db:# regenerate man database
- /etc/cron.weekly/man-db:if [ -x /usr/bin/mandb ]; then
- /etc/cron.weekly/man-db: # --pidfile /dev/null so it always starts; mandb isn't really a daemon,
- /etc/cron.weekly/man-db: # but we want to start it like one.
- /etc/cron.weekly/man-db: start-stop-daemon --start --pidfile /dev/null \
- /etc/cron.weekly/man-db: --startas /usr/bin/mandb --oknodo --chuid man \
- /etc/cron.weekly/man-db: $iosched_idle \
- /etc/cron.weekly/man-db: -- --quiet
- /etc/cron.weekly/man-db:fi
- /etc/cron.weekly/man-db:
- /etc/cron.weekly/man-db:exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement