summaryrefslogtreecommitdiffstats
path: root/init/systemd/man-db.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'init/systemd/man-db.service.in')
-rw-r--r--init/systemd/man-db.service.in28
1 files changed, 28 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..2d2877b
--- /dev/null
+++ b/init/systemd/man-db.service.in
@@ -0,0 +1,28 @@
+[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
+# Regenerate man database.
+ExecStart=@bindir@/mandb --quiet
+User=@cache_top_owner@
+Nice=19
+IOSchedulingClass=idle
+IOSchedulingPriority=7
+
+LockPersonality=true
+PrivateDevices=true
+PrivateTmp=true
+ProtectClock=true
+ProtectControlGroups=true
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectSystem=full
+RestrictRealtime=true