Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 7963 Details for
Bug 9467
setiathome rc script enhancement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reworked setiathome rc script to allow configurable number of threads
setiathome (text/plain), 1.56 KB, created by
Max Kalika (RETIRED)
on 2003-02-05 16:09:07 UTC
(
hide
)
Description:
reworked setiathome rc script to allow configurable number of threads
Filename:
MIME Type:
Creator:
Max Kalika (RETIRED)
Created:
2003-02-05 16:09:07 UTC
Size:
1.56 KB
patch
obsolete
>#!/sbin/runscript > >[ -z ${SETIATHOME_THREADS} ] && SETIATHOME_THREADS=`egrep -c "^processor" /proc/cpuinfo` > >checkconfig() { > if [ ! -e ${SETIATHOME_DIR} ] > then > einfo "Creating ${SETIATHOME_DIR}" > mkdir ${SETIATHOME_DIR} > fi > > if [ ! -e ${SETIATHOME_DIR}/user_info.sah ] > then > einfo "Setting up SETI@home for the first time" > cd ${SETIATHOME_DIR} > /opt/setiathome/setiathome -login > fi > > if [ ${SETIATHOME_THREADS} != '1' ]; then > cd ${SETIATHOME_DIR} > for thread in `seq 2 ${SETIATHOME_THREADS}`; do > if [ ! -e ${SETIATHOME_DIR}/thread${thread} ]; then > mkdir ${SETIATHOME_DIR}/thread${thread} > cp ${SETIATHOME_DIR}/user_info.sah ${SETIATHOME_DIR}/thread${thread} > fi > done > fi >} > >start() { > checkconfig > > > if [ ${SETIATHOME_THREADS} = '1' ]; then > ebegin "Starting SETI@home" > else > ebegin "Starting SETI@home (${SETIATHOME_THREADS} threads)" > fi > > for thread in `seq 1 ${SETIATHOME_THREADS}`; do > cd ${SETIATHOME_DIR} > if [ $thread != '1' ]; then > cd thread${thread} > fi > > /opt/setiathome/setiathome ${SETIATHOME_OPTIONS} >&/dev/null& > done > > eend $? >} > >stop() { > ebegin "Stopping SETI@home" > killall setiathome > 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 9467
:
7963
|
10815
|
10816