summaryrefslogtreecommitdiff
path: root/source/ap/man-db/man-db.cron
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/man-db/man-db.cron')
-rw-r--r--source/ap/man-db/man-db.cron14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/ap/man-db/man-db.cron b/source/ap/man-db/man-db.cron
new file mode 100644
index 00000000..d8cd84d2
--- /dev/null
+++ b/source/ap/man-db/man-db.cron
@@ -0,0 +1,14 @@
+#!/bin/sh
+# man-db daily cronjob, part of the man-db package.
+
+# Unset $MANPATH so that mandb will get it from man_db.conf rather than
+# the environment:
+unset MANPATH
+
+# Make sure the man-db cache directory exists:
+mkdir -p /var/cache/man
+
+# Regenerate the index databases caches used by man-db.
+# These increase perfomance and provide features such as whatis and apropos.
+ionice -c3 nice -n 19 /usr/bin/mandb --no-purge --quiet
+