Advertisement
Guest User

mze1

a guest
Jul 24th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. /etc/cron.weekly/0anacron:#!/bin/sh
  2. /etc/cron.weekly/0anacron:#
  3. /etc/cron.weekly/0anacron:# anacron's cron script
  4. /etc/cron.weekly/0anacron:#
  5. /etc/cron.weekly/0anacron:# This script updates anacron time stamps. It is called through run-parts
  6. /etc/cron.weekly/0anacron:# either by anacron itself or by cron.
  7. /etc/cron.weekly/0anacron:#
  8. /etc/cron.weekly/0anacron:# The script is called "0anacron" to assure that it will be executed
  9. /etc/cron.weekly/0anacron:# _before_ all other scripts.
  10. /etc/cron.weekly/0anacron:
  11. /etc/cron.weekly/0anacron:test -x /usr/sbin/anacron || exit 0
  12. /etc/cron.weekly/0anacron:anacron -u cron.weekly
  13. /etc/cron.weekly/apt-xapian-index:#!/bin/sh
  14. /etc/cron.weekly/apt-xapian-index:
  15. /etc/cron.weekly/apt-xapian-index:CMD=/usr/sbin/update-apt-xapian-index
  16. /etc/cron.weekly/apt-xapian-index:
  17. /etc/cron.weekly/apt-xapian-index:# ionice should not be called in a virtual environment
  18. /etc/cron.weekly/apt-xapian-index:# (similar to man-db cronjobs)
  19. /etc/cron.weekly/apt-xapian-index:egrep -q '(envID|VxID):.*[1-9]' /proc/self/status || IONICE=/usr/bin/ionice
  20. /etc/cron.weekly/apt-xapian-index:
  21. /etc/cron.weekly/apt-xapian-index:# Check if we're on battery
  22. /etc/cron.weekly/apt-xapian-index:if which on_ac_power >/dev/null 2>&1; then
  23. /etc/cron.weekly/apt-xapian-index: on_ac_power >/dev/null 2>&1
  24. /etc/cron.weekly/apt-xapian-index: ON_BATTERY=$?
  25. /etc/cron.weekly/apt-xapian-index:
  26. /etc/cron.weekly/apt-xapian-index: # Here we use "-eq 1" instead of "-ne 0" because
  27. /etc/cron.weekly/apt-xapian-index: # on_ac_power could also return 255, which means
  28. /etc/cron.weekly/apt-xapian-index: # it can't tell whether we are on AC or not. In
  29. /etc/cron.weekly/apt-xapian-index: # that case, run update-a-x-i nevertheless.
  30. /etc/cron.weekly/apt-xapian-index: [ "$ON_BATTERY" -eq 1 ] && exit 0
  31. /etc/cron.weekly/apt-xapian-index:fi
  32. /etc/cron.weekly/apt-xapian-index:
  33. /etc/cron.weekly/apt-xapian-index:# Rebuild the index
  34. /etc/cron.weekly/apt-xapian-index:if [ -x "$CMD" ]
  35. /etc/cron.weekly/apt-xapian-index:then
  36. /etc/cron.weekly/apt-xapian-index: if [ -x "$IONICE" ]
  37. /etc/cron.weekly/apt-xapian-index: then
  38. /etc/cron.weekly/apt-xapian-index: nice -n 19 $IONICE -c 3 $CMD --quiet
  39. /etc/cron.weekly/apt-xapian-index: else
  40. /etc/cron.weekly/apt-xapian-index: nice -n 19 $CMD --quiet
  41. /etc/cron.weekly/apt-xapian-index: fi
  42. /etc/cron.weekly/apt-xapian-index:fi
  43. /etc/cron.weekly/fstrim:#!/bin/sh
  44. /etc/cron.weekly/fstrim:# call fstrim-all to trim all mounted file systems which support it
  45. /etc/cron.weekly/fstrim:set -e
  46. /etc/cron.weekly/fstrim:
  47. /etc/cron.weekly/fstrim:# This only runs on Intel and Samsung SSDs by default, as some SSDs with faulty
  48. /etc/cron.weekly/fstrim:# firmware may encounter data loss problems when running fstrim under high I/O
  49. /etc/cron.weekly/fstrim:# load (e. g. https://launchpad.net/bugs/1259829). You can append the
  50. /etc/cron.weekly/fstrim:# --no-model-check option here to disable the vendor check and run fstrim on
  51. /etc/cron.weekly/fstrim:# all SSD drives.
  52. /etc/cron.weekly/fstrim:exec fstrim-all
  53. /etc/cron.weekly/man-db:#!/bin/sh
  54. /etc/cron.weekly/man-db:#
  55. /etc/cron.weekly/man-db:# man-db cron weekly
  56. /etc/cron.weekly/man-db:
  57. /etc/cron.weekly/man-db:set -e
  58. /etc/cron.weekly/man-db:
  59. /etc/cron.weekly/man-db:iosched_idle=
  60. /etc/cron.weekly/man-db:# Don't try to change I/O priority in a vserver or OpenVZ.
  61. /etc/cron.weekly/man-db:if ! egrep -q '(envID|VxID):.*[1-9]' /proc/self/status && \
  62. /etc/cron.weekly/man-db: ([ ! -d /proc/vz ] || [ -d /proc/bc ]); then
  63. /etc/cron.weekly/man-db: iosched_idle='--iosched idle'
  64. /etc/cron.weekly/man-db:fi
  65. /etc/cron.weekly/man-db:
  66. /etc/cron.weekly/man-db:if ! [ -d /var/cache/man ]; then
  67. /etc/cron.weekly/man-db: # Recover from deletion, per FHS.
  68. /etc/cron.weekly/man-db: mkdir -p /var/cache/man
  69. /etc/cron.weekly/man-db: chown man:root /var/cache/man || true
  70. /etc/cron.weekly/man-db: chmod 2755 /var/cache/man
  71. /etc/cron.weekly/man-db:fi
  72. /etc/cron.weekly/man-db:
  73. /etc/cron.weekly/man-db:# regenerate man database
  74. /etc/cron.weekly/man-db:if [ -x /usr/bin/mandb ]; then
  75. /etc/cron.weekly/man-db: # --pidfile /dev/null so it always starts; mandb isn't really a daemon,
  76. /etc/cron.weekly/man-db: # but we want to start it like one.
  77. /etc/cron.weekly/man-db: start-stop-daemon --start --pidfile /dev/null \
  78. /etc/cron.weekly/man-db: --startas /usr/bin/mandb --oknodo --chuid man \
  79. /etc/cron.weekly/man-db: $iosched_idle \
  80. /etc/cron.weekly/man-db: -- --quiet
  81. /etc/cron.weekly/man-db:fi
  82. /etc/cron.weekly/man-db:
  83. /etc/cron.weekly/man-db:exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement