[OpenIndiana-discuss] svc:/system/update-man-index is slow

Richard L. Hamilton rlhamil at smart.net
Tue Sep 21 11:07:47 UTC 2021


Perhaps better, to be consistent with what I see elsewhere in method scripts, one line should be further changed to use full paths of executables:
        if [ -d "${p}" -a -f "${p}/whatis" ] && [ "$(/usr/bin/find "${p}" -newer "${p}/whatis" | /usr/bin/wc -l | /usr/bin/tr -d ' ')" == "0" ]; then


> On Sep 21, 2021, at 06:48, Richard L. Hamilton <rlhamil at smart.net> wrote:
> 
> Most of the time, man indexes don't actually need to be rebuilt. The attached change to /lib/svc/method/update-man-index should (I think) only update the directories (if any) that are not current, so that most of the time, it finishes in a second or so rather than a couple of minutes (less clutter in svcs -xv shortly after system comes up).
> 
> If someone wants to review it and if they like it, commit it, that'd be cool.
> 
> <update-man-index.patch.txt>_______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

-- 
eMail:				mailto:rlhamil at smart.net






More information about the openindiana-discuss mailing list