summaryrefslogtreecommitdiff
path: root/man-db-cache-update.service
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-05-03 09:33:56 +0000
committerCoprDistGit <infra@openeuler.org>2025-05-03 09:33:56 +0000
commit4987d16fa150f8e523dcc85c9fc83eb68508a0b2 (patch)
tree4291f192eeb1389c00eb6e8a13cea7493f95f69f /man-db-cache-update.service
parentcdce8586fc09f8e356492a095298669ce981248e (diff)
automatic import of man-dbopeneuler24.03_LTS
Diffstat (limited to 'man-db-cache-update.service')
-rw-r--r--man-db-cache-update.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/man-db-cache-update.service b/man-db-cache-update.service
new file mode 100644
index 0000000..fdf08d7
--- /dev/null
+++ b/man-db-cache-update.service
@@ -0,0 +1,11 @@
+[Unit]
+After=local-fs.target
+
+[Service]
+Type=oneshot
+Environment=MAN_NO_LOCALE_WARNING=1
+EnvironmentFile=/etc/sysconfig/man-db
+ExecStart=/bin/sh -c '[ "$SERVICE" != "no" ] && /usr/bin/mandb $OPTS || true'
+ExecStopPost=/bin/sh -c '[ "$SERVICE_RESULT" == "signal" ] && /usr/bin/systemctl enable man-db-restart-cache-update.service || true'
+Nice=19
+IOWeight=20