Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24390 Details for
Bug 39350
chessbrain-30124 (update)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The new init.d file
cb-init-1.d (text/plain), 1.35 KB, created by
Klaus S. Madsen
on 2004-01-25 07:23:55 UTC
(
hide
)
Description:
The new init.d file
Filename:
MIME Type:
Creator:
Klaus S. Madsen
Created:
2004-01-25 07:23:55 UTC
Size:
1.35 KB
patch
obsolete
>#!/sbin/runscript > >cpus=`egrep -c "^processor" /proc/cpuinfo` > >checkconfig() { > if [ ! -e ${CHESSBRAIN_DIR} ] > then > einfo "Creating ${CHESSBRAIN_DIR}" > mkdir ${CHESSBRAIN_DIR} > fi > > if [ $cpus != '1' ]; then > cd ${CHESSBRAIN_DIR} > for cpu in `seq 2 $cpus`; do > if [ ! -e ${CHESSBRAIN_DIR}/cpu${cpu} ]; then > mkdir ${CHESSBRAIN_DIR}/cpu${cpu} > cp ${CHESSBRAIN_DIR}/* ${CHESSBRAIN_DIR}/cpu${cpu} > /dev/null > cp ${CHESSBRAIN_DIR}/cbspan.conf ${CHESSBRAIN_DIR}/cpu${cpu} > fi > done > fi >} > >start() { > checkconfig > > > if [ $cpus = '1' ]; then > ebegin "Starting ChessBrain" > else > ebegin "Starting ChessBrain ($cpus processors)" > fi > > for cpu in `seq 1 $cpus`; do > cd ${CHESSBRAIN_DIR} > if [ $cpu != '1' ]; then > cd cpu${cpu} > fi > > if [ -z ${CHESSBRAIN_LOGFILE} ]; then > log=/dev/null > elif [ $cpus -eq 1 ]; then > log=${CHESSBRAIN_LOGFILE} > else > log=${CHESSBRAIN_LOGFILE}.cpu${cpu} > fi > > ./cbspn 1>&2 > ${log} & > done > > eend $? >} > >stop() { > ebegin "Stopping ChessBrain" > killall cbspn > 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 39350
:
24388
|
24389
|
24390
|
24479
|
24480
|
24481