summaryrefslogtreecommitdiffstats
path: root/init/systemd/man-db.service.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:16:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:16:24 +0000
commit9221dca64f0c8b5de72727491e41cf63e902eaab (patch)
treed8cbbf520eb4b5c656a54b2e36947008dcb751ad /init/systemd/man-db.service.in
parentInitial commit. (diff)
downloadman-db-9221dca64f0c8b5de72727491e41cf63e902eaab.tar.xz
man-db-9221dca64f0c8b5de72727491e41cf63e902eaab.zip
Adding upstream version 2.8.5.upstream/2.8.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'init/systemd/man-db.service.in')
-rw-r--r--init/systemd/man-db.service.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/init/systemd/man-db.service.in b/init/systemd/man-db.service.in
new file mode 100644
index 0000000..25be57d
--- /dev/null
+++ b/init/systemd/man-db.service.in
@@ -0,0 +1,17 @@
+[Unit]
+Description=Daily man-db regeneration
+Documentation=man:mandb(8)
+ConditionACPower=true
+
+[Service]
+Type=oneshot
+# Recover from deletion, per FHS.
+ExecStart=+/usr/bin/install -d -o @cache_top_owner@ -g @cache_top_owner@ -m 0755 /var/cache/man
+# Expunge old catman pages which have not been read in a week.
+ExecStart=/usr/bin/find /var/cache/man -type f -name *.gz -atime +6 -delete
+# Regenerate man database.
+ExecStart=@bindir@/mandb
+User=@cache_top_owner@
+Nice=19
+IOSchedulingClass=idle
+IOSchedulingPriority=7