diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-12-01 14:10:29 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-12-01 14:10:29 +0000 |
commit | bc0657f7159d0b01373ecb59afc426b98a172b1e (patch) | |
tree | 7fba1eb77eb1a2965fe5f3ed72cc77aa63d14f40 /testing/man-db/man-db.cron.daily | |
parent | fd115d7057eb8243df6edfaf1ed440d6f3e70692 (diff) |
Thu Dec 1 14:10:27 UTC 2011
Diffstat (limited to 'testing/man-db/man-db.cron.daily')
-rwxr-xr-x | testing/man-db/man-db.cron.daily | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/testing/man-db/man-db.cron.daily b/testing/man-db/man-db.cron.daily deleted file mode 100755 index 53e66e1e9..000000000 --- a/testing/man-db/man-db.cron.daily +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable) -NICE=19 - -# 0 for none, 1 for real time, 2 for best-effort, 3 for idle -IONICE_CLASS=2 - -# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest -IONICE_PRIORITY=7 - -UPDATEMANDB="/usr/bin/mandb --quiet" - -# Update the "whatis" database -#/usr/sbin/makewhatis -u -w - -# taken from Debian -# man-db cron daily -set -e - -if ! [ -d /var/cache/man ]; then - # Recover from deletion, per FHS. - mkdir -p /var/cache/man - chmod 755 /var/cache/man -fi - -# regenerate man database - -if [ -x /usr/bin/nice ]; then - UPDATEMANDB="/usr/bin/nice -n ${NICE:-19} ${UPDATEMANDB}" -fi - -if [ -x /usr/bin/ionice ]; then - UPDATEMANDB="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${UPDATEMANDB}" -fi - -${UPDATEMANDB} - -exit 0 |