Automatically maintain whatis database
When man pages are installed or removed during a package operation, it would be good if the man page index (whatis database) was automatically refreshed.
Updated by Andy Fiddaman about 2 years ago
Review at: https://www.illumos.org/rb/r/2270/
This is based on a change that has been in OmniOS for a while.
I tested it by installing packages which contain man pages and ensuring that the whatis database was rebuilt automatically, for example:
bloody% apropos zyd bloody% pfexec pkg install zyd Packages to install: 1 Services to change: 1 bloody% apropos zyd zyd(7d) - ZyDAS ZD1211/ZD1211B USB 802.11b/g Wireless Driver bloody% tail `svcs -L update-man-index` [ Sep 18 08:19:17 Method "start" exited with status 0. ] [ Sep 18 08:20:23 Stopping because service restarting. ] [ Sep 18 08:20:23 Executing stop method (null). ] [ Sep 18 08:20:23 Executing start method ("/lib/svc/method/update-man-index /usr/share/man:/usr/has/man"). ] Rebuilding man page index using /opt/ooce/share/man:/usr/gnu/share/man:/usr/has/man:/usr/man:/usr/share/man [ Sep 18 08:20:23 Method "start" exited with status 0. ] ...
Updated by Electric Monk about 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 2b77347cd95dc12475fe2af8a715097166d0523a Author: Andy Fiddaman <email@example.com> Date: 2019-09-20T07:10:46.000Z 11683 Automatically maintain whatis database Reviewed by: Rich Lowe <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>