Stephen, > * Shi-Ying Irene Huang <sh162551 at sac.sfbay.sun.com> [2008-07-15 09:24]: > >> 4.1. Details: >> >> This locate can index all files on your system, but only files >> and directories which the invoking user has access to will be >> displayed. >> > > In the discussions I've been in, it's been suggested that each locate > implementation have an update service in smf(5), such as > > svc:/application/update/slocate > > so that it's easy to reindex the filesystem. I also agree with Jim's > point that a cron job (which would be "svcadm restart slocate" on some > interval) is probably part of the delivery. > > In Linux distribution, slocate use anacron to update index file periodically. Anacron is a little bit different from cron job. It executes commands at intervals not at specified time. It does not assume that the system is running continuously.
If we provide an update services in smf(5), this service only update the index file when it start or restart, it that correct? From my understand, cron doesn't support executing command on some interval instead of specify a specific time, for instance, 24:13. If I'm wrong, please guide me how to do that. If so, which time is best time to slocate in crontab? What about a developer want to shut down his/her machine at midnight? Thanks Jim > - Stephen > >