[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

prelink cron script



Hi,
   With the release of prelink and glibc 2.3, we should start thinking
about creating a cron script for the prelink package. What this prelink
cron script would need to do is maintain a timestamp of the last
successful prelinking of the system in /var/tmp. At each cron'd run
of the prelink script it would...

1) check the prelink timestamp file against the current time
   at the start of the script run
2) scan all of the installed packages with dpkg to see if they
   were installed since the last complete successful prelinking
3) make a list of these packages and then list the files...only
   keeping those files in the list that are libs or binaries.
4) pass that list of files to prelink for prelinking
5) once the prelink command has executed, reset the timestamp
   to the time at the start of the script run (Not the time at
   the end since it takes sometime to prelink and things could
   get installed while the script is running.

Any suggestions as to how to best get this info from dpkg? Thanks
in advance for any advice.
                               Jack



Reply to: