man-db.service 482 B

1234567891011121314151617
  1. [Unit]
  2. Description=Daily man-db regeneration
  3. Documentation=man:mandb(8)
  4. ConditionACPower=true
  5. [Service]
  6. Type=oneshot
  7. # Recover from deletion, per FHS.
  8. ExecStart=+/usr/bin/install -d -o man -g man -m 0755 /var/cache/man
  9. # Expunge old catman pages which have not been read in a week.
  10. ExecStart=/usr/bin/find /var/cache/man -type f -name *.gz -atime +6 -delete
  11. # Regenerate man database.
  12. ExecStart=/usr/bin/mandb --quiet
  13. User=man
  14. Nice=19
  15. IOSchedulingClass=idle
  16. IOSchedulingPriority=7