Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 171098 Details for
Bug 234360
sci-misc/boinc-6.2.16 ebuild+sourcecode
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
boinc.init
boinc.init (text/plain), 1.88 KB, created by
Gilles Dartiguelongue (RETIRED)
on 2008-11-08 11:05:14 UTC
(
hide
)
Description:
boinc.init
Filename:
MIME Type:
Creator:
Gilles Dartiguelongue (RETIRED)
Created:
2008-11-08 11:05:14 UTC
Size:
1.88 KB
patch
obsolete
>#!/sbin/runscript > >opts="${opts} attach" > >depend() { > use dns > need net >} > >start() { > ebegin "Starting BOINC" > if [ ! -d ${RUNTIMEDIR} ]; then > einfo "Directory ${RUNTIMEDIR} not existing, creating now." > /bin/mkdir ${RUNTIMEDIR} > /bin/chown ${USER}:${GROUP} ${RUNTIMEDIR} > if [ ! -d ${RUNTIMEDIR} ]; then > eerror "Directory ${RUNTIMEDIR} could not be created!" > return 1 > fi > fi > > cd ${RUNTIMEDIR} > > if [ ! -f lockfile ]; then > einfo "File ${RUNTIMEDIR}/lockfile does not exist, assuming first run." > einfo "You need to setup an account on the BOINC project homepage beforehand! Go to http://boinc.berkeley.edu/ and locate your project." > einfo "Then either run /etc/init.d/boinc attach or connect with a gui client and attach to a project with that." > fi > > # if the log file doesn't exist, create it with root privs, then change ownership to boinc > if [ ! -f ${LOGFILE} ]; then > touch ${LOGFILE} > chown ${USER}:${GROUP} ${LOGFILE} > else > mv ${LOGFILE} ${LOGFILE}.old > touch ${LOGFILE} > chown ${USER}:${GROUP} ${LOGFILE} > fi > > ARGS="${ARGS} --dir ${RUNTIMEDIR}" > > if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then > ARGS="${ARGS} --allow_remote_gui_rpc" > fi > > start-stop-daemon --quiet --start \ > --exec ${BOINCBIN} \ > --user ${USER}:${GROUP} \ > --background --make-pidfile \ > --pidfile /var/run/boinc.pid \ > --stdout ${LOGFILE} \ > --stderr ${LOGFILE} \ > --nice ${NICELEVEL} -- ${ARGS} > > eend $? >} > >attach() { > printf " Enter the Project URL: " > read url > printf " Enter your Account Key: " > read key > > RC_QUIET_STDOUT="yes" svc_status > if [ $? == 1 ]; then > svc_start > fi > ebegin "Attaching to project" > # boinc cmd does not return 1 when it fails currently > boinc_cmd --project_attach ${url} ${key} &> /dev/null > eend $? > > sleep 10 > tail ${LOGFILE} >} > >stop() { > ebegin "Stopping BOINC" > start-stop-daemon --stop --quiet --exec ${BOINCBIN} > eend $? >} > >restart() { > svc_stop > sleep 6 > svc_start >}
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 234360
:
162607
|
171094
|
171096
| 171098 |
172375
|
173059