This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: prelinking speed


On Fri, Oct 04, 2002 at 10:05:49AM -0400, Jack Howarth wrote:
> Jakub,
>    So one should add something like this to /etc/cron.weekly...
>                                   Jack
> 
>   #!/bin/bash
> 
>   LOCKFILE=/var/lock/prelink.lock
> 
>   [ -f $LOCKFILE ] && exit 0
>   trap "{ rm -f $LOCKFILE; exit 255; }" EXIT
>   touch $LOCKFILE
>   prelink -ma
>   exit 0

Ideally more complicated, e.g. to be run daily it could check
timestamp of rpm database and if it is newer than a day old, it
would trigger prelink daily, otherwise it would only prelink weekly.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]