prelinking speed

Jakub Jelinek jakub@redhat.com
Fri Oct 4 07:18:00 GMT 2002


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



More information about the Libc-alpha mailing list