Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298187 Details for
Bug 437684
Using /var/cache/prelink instead of /etc/prelink.cache and /var/lib/misc/prelink.*
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
cron script changes
prelink.cron.patch (text/plain), 2.84 KB, created by
Stefan Schulze Frielinghaus
on 2008-03-16 11:36:34 UTC
(
hide
)
Description:
cron script changes
Filename:
MIME Type:
Creator:
Stefan Schulze Frielinghaus
Created:
2008-03-16 11:36:34 UTC
Size:
2.84 KB
patch
obsolete
>--- prelink.cron.orig 2008-03-16 12:31:44.000000000 +0100 >+++ prelink.cron 2008-03-06 19:11:07.000000000 +0100 >@@ -5,41 +5,41 @@ > renice +19 -p $$ >/dev/null 2>&1 > > if [ "$PRELINKING" != yes ]; then >- if [ -f /etc/prelink.cache ]; then >+ if [ -f /var/cache/prelink/prelink.cache ]; then > echo /usr/sbin/prelink -uav > /var/log/prelink/prelink.log > /usr/sbin/prelink -uav >> /var/log/prelink/prelink.log 2>&1 \ > || echo Prelink failed with return value $? >> /var/log/prelink/prelink.log >- rm -f /etc/prelink.cache >+ rm -f /var/cache/prelink/prelink.cache > # Restart init if needed > [ -n "$(find `ldd /sbin/init | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u > fi > exit 0 > fi > >-if [ ! -f /etc/prelink.cache -o -f /var/lib/misc/prelink.force ] \ >- || grep -q '^prelink-ELF0.[0-2]' /etc/prelink.cache; then >+if [ ! -f /var/cache/prelink/prelink.cache -o -f /var/cache/prelink/prelink.force ] \ >+ || grep -q '^prelink-ELF0.[0-2]' /var/cache/prelink/prelink.cache; then > # If cache does not exist or is from older prelink versions or > # if we were asked to explicitely, force full prelinking >- rm -f /etc/prelink.cache /var/lib/misc/prelink.force >+ rm -f /var/cache/prelink/prelink.cache /var/cache/prelink/prelink.force > PRELINK_OPTS="$PRELINK_OPTS -f" >- date > /var/lib/misc/prelink.full >- cp -a /var/lib/misc/prelink.{full,quick} >+ date > /var/cache/prelink/prelink.full >+ cp -a /var/cache/prelink/prelink.{full,quick} > elif [ -n "$PRELINK_FULL_TIME_INTERVAL" \ >- -a "`find /var/lib/misc/prelink.full -mtime -${PRELINK_FULL_TIME_INTERVAL} 2>/dev/null`" \ >- = /var/lib/misc/prelink.full ]; then >+ -a "`find /var/cache/prelink/prelink.full -mtime -${PRELINK_FULL_TIME_INTERVAL} 2>/dev/null`" \ >+ = /var/cache/prelink/prelink.full ]; then > # If no more than PRELINK_NONRPM_CHECK_INTERVAL days elapsed from last prelink > # (be it full or quick) and no packages have been upgraded via rpm since then, > # don't do anything. >- [ "`find /var/lib/misc/prelink.quick -mtime -${PRELINK_NONRPM_CHECK_INTERVAL:-7} 2>/dev/null`" \ >+ [ "`find /var/cache/prelink/prelink.quick -mtime -${PRELINK_NONRPM_CHECK_INTERVAL:-7} 2>/dev/null`" \ > -a -f /var/lib/rpm/Packages \ >- -a /var/lib/rpm/Packages -ot /var/lib/misc/prelink.quick ] && exit 0 >- date > /var/lib/misc/prelink.quick >+ -a /var/lib/rpm/Packages -ot /var/cache/prelink/prelink.quick ] && exit 0 >+ date > /var/cache/prelink/prelink.quick > # If prelink without -q has been run in the last > # PRELINK_FULL_TIME_INTERVAL days, just use quick mode > PRELINK_OPTS="$PRELINK_OPTS -q" > else >- date > /var/lib/misc/prelink.full >- cp -a /var/lib/misc/prelink.{full,quick} >+ date > /var/cache/prelink/prelink.full >+ cp -a /var/cache/prelink/prelink.{full,quick} > fi > > echo /usr/sbin/prelink -av $PRELINK_OPTS > /var/log/prelink/prelink.log
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 437684
:
298186
| 298187 |
298188