Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 214785 Details for
Bug 299140
sys-apps/preload-0.6.4-r1: race condition in init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for preload init script
preload-0.6.4.init.in.patch (text/plain), 1011 bytes, created by
Ambroz Bizjak
on 2009-12-31 17:53:06 UTC
(
hide
)
Description:
patch for preload init script
Filename:
MIME Type:
Creator:
Ambroz Bizjak
Created:
2009-12-31 17:53:06 UTC
Size:
1011 bytes
patch
obsolete
>--- preload-0.6.4.init.in.orig 2009-05-20 04:58:30.000000000 +0200 >+++ preload-0.6.4.init.in 2009-12-31 18:19:43.000000000 +0100 >@@ -27,19 +27,21 @@ > # Check for > MIN_MEMORY MB > #free -m | awk '/Mem:/ {exit ($2 >= ('"$MIN_MEMORY"'))?0:1}' || exit 0 > >- # IMPORTANT: Let ssd do the backgrounding so we immediatly get a valid >- # pid file in the next step (ionice) >+ IONICE=$(which ionice) >+ if [ -x "$IONICE" ]; then >+ EXEC="$IONICE" >+ ARGS=( ${IONICE_OPTS:--c3} "@sbindir@/@PACKAGE@" ) >+ else >+ EXEC="@sbindir@/@PACKAGE@" >+ ARGS=() >+ fi >+ > start-stop-daemon --start --quiet --background \ > --make-pidfile --pidfile ${PIDFILE} \ >- --exec @sbindir@/@PACKAGE@ -- \ >+ --exec "$EXEC" -- "${ARGS[@]}" \ > -l ${PRELOAD_LOGFILE:-/var/log/preload.log} -V ${PRELOAD_VERBOSITY:-1} \ > -n ${PRELOAD_NICE:-15} -s ${PRELOAD_STATEFILE:-""} ${PRELOAD_OPTS} -f > >- IONICE=$(which ionice) >- if [ -x "$IONICE" ]; then >- IONICE_OPTS=${IONICE_OPTS:--c3} >- $IONICE ${IONICE_OPTS} -p$(<${PIDFILE}) >- fi > eend $? > } >
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 299140
:
214782
|
214785
|
229317