summaryrefslogtreecommitdiff
path: root/man-db-restart-cache-update.service
diff options
context:
space:
mode:
Diffstat (limited to 'man-db-restart-cache-update.service')
-rw-r--r--man-db-restart-cache-update.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/man-db-restart-cache-update.service b/man-db-restart-cache-update.service
new file mode 100644
index 0000000..1d0d6ef
--- /dev/null
+++ b/man-db-restart-cache-update.service
@@ -0,0 +1,11 @@
+[Unit]
+Before=multi-user.target
+
+[Service]
+Type=oneshot
+ExecStartPre=/usr/bin/rm -rf /var/cache/man/*
+ExecStart=/usr/bin/systemd-run /usr/bin/systemctl start man-db-cache-update.service
+ExecStartPost=/usr/bin/systemctl disable man-db-restart-cache-update.service
+
+[Install]
+WantedBy=multi-user.target