On Fri, Jun 6, 2008 at 8:55 PM, Erwann Chenede <[EMAIL PROTECTED]> wrote: > > The general design for each service script is to check if the cache is > older than the items it is meant to cache if so the cache is regenerated. > This ensure the time spent at boot time by these services is minimum if no > package upgrade happened.
Is this logic valid? I can think of at least 2 cases when it fails: - if something is removed, then the find won't find it at all - if whatever's putting files in changes the timestamps, then the find will be confused It would be safer to always regenerate. What you need is to know whether packaging installed or removed anything; you can't rely on find to answer that. Presumably these all need to run in zones as well? -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
