Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229317 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]
init script
preload (text/plain), 1.03 KB, created by
Ambroz Bizjak
on 2010-04-26 20:32:02 UTC
(
hide
)
Description:
init script
Filename:
MIME Type:
Creator:
Ambroz Bizjak
Created:
2010-04-26 20:32:02 UTC
Size:
1.03 KB
patch
obsolete
>#!/sbin/runscript > >PIDFILE="/var/run/preload.pid" > >depend() { > after localmount > use netmount ntpd >} > >dump() { > ebegin "Dumping config and state for preload" > kill -USR1 $(<${PIDFILE}) > kill -USR2 $(<${PIDFILE}) > eend $? >} > >reload() { > ebegin "Reloading preload" > kill -HUP $(<${PIDFILE}) > eend $? >} > >start() { > ebegin "Starting preload" > > #MIN_MEMORY=${MIN_MEMORY:-256} > # Check for > MIN_MEMORY MB > #free -m | awk '/Mem:/ {exit ($2 >= ('"$MIN_MEMORY"'))?0:1}' || exit 0 > > IONICE=$(which ionice) > if [ -x "$IONICE" ]; then > EXEC="$IONICE" > ARGS="${IONICE_OPTS:--c3} /usr/sbin/preload" > else > EXEC="/usr/sbin/preload" > ARGS="" > fi > > start-stop-daemon --start --quiet --background \ > --make-pidfile --pidfile ${PIDFILE} \ > --exec "$EXEC" -- $ARGS \ > -l ${PRELOAD_LOGFILE:-/var/log/preload.log} -V ${PRELOAD_VERBOSITY:-1} \ > -n ${PRELOAD_NICE:-15} -s ${PRELOAD_STATEFILE:-""} ${PRELOAD_OPTS} -f > > eend $? >} > >stop() { > ebegin "Stopping preload (this may take while)" > start-stop-daemon --stop --retry 120 --quiet --pidfile ${PIDFILE} > 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 Raw
Actions:
View
Attachments on
bug 299140
:
214782
|
214785
|
229317