[Gentoo] Boinc stop the boot

Message boards : Questions and problems : [Gentoo] Boinc stop the boot
Message board moderation

To post messages, you must log in.

AuthorMessage
Ulrar

Send message
Joined: 28 Oct 10
Posts: 3
France
Message 35498 - Posted: 29 Oct 2010, 7:38:40 UTC

Hi,

I've installed BOINC yesterday and added the daemon to start at boot.

But the daemon (/etc/init.d/boinc start) just don't give the console back. It says "Starting BOINC ... [OK]" and stay on it forever.
When I boot now, the boot stop at Starting BOINC and just never continue.

So, is there a way to modify the init script so it'll give back the console to the boot process ?
Thanks
ID: 35498 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15482
Netherlands
Message 35499 - Posted: 29 Oct 2010, 8:35:11 UTC - in response to Message 35498.  
Last modified: 29 Oct 2010, 8:35:48 UTC

Adding --detach as a command to Boinc will kill the terminal window, after Boinc has started. I think you'd also need --redirectio, to make sure output goes to the std*.txt files, and not to the now closed command line window.

So that would make Boinc need to start with: boinc --redirectio --detach
Also see the other command line options.

One other thing you may want to do is add a start-up delay, in the form of a cc_config.xml file in the BOINC data directory, containing in the least:

<cc_config>
<log_flags>
</log_flags>
<options>
<start_delay>N</start_delay>
</options>
</cc_config>

Where N is any number resembling the amount of seconds you want it to stop. E.g. <start_delay>30</start_delay> will stop BOINC from starting up for 30 seconds.
ID: 35499 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 35501 - Posted: 29 Oct 2010, 8:54:38 UTC - in response to Message 35499.  

Jord, according to the Wiki the <start_delay> means

Specify a number of seconds to delay running applications after client startup

I don't think it'll have any effect on the startup for BOINC itself - in fact, thinking about it, BOINC will have to be running in order to read cc_config.xml
ID: 35501 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15482
Netherlands
Message 35502 - Posted: 29 Oct 2010, 9:01:30 UTC - in response to Message 35501.  
Last modified: 29 Oct 2010, 9:03:56 UTC

Yeah ok, I said that wrong. I won't have any effect on starting up BOINC, but it will have an effect on its resource use when starting up. I can imagine (and see it here on Windows) that it starts up as soon as possible, the science applications start using resources you don't want them to use yet (memory, CPUs). This start delay prohibits that. It'll start BOINC, but won't start up the science applications until after these amount of seconds are run. Which may make the start-up sequence a little smoother.

I also see we don't need the cc_config.xml for the start delay. It can also be done from the command line.

So that makes starting BOINC like this: boinc --redirectio --start_delay 30 --detach
ID: 35502 · Report as offensive
Profile KSMarksPsych
Avatar

Send message
Joined: 30 Oct 05
Posts: 1239
United States
Message 35507 - Posted: 29 Oct 2010, 11:36:40 UTC - in response to Message 35498.  

Where did you get the init.d script? The one I use is here.
Kathryn :o)
ID: 35507 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 35561 - Posted: 31 Oct 2010, 5:37:42 UTC - in response to Message 35498.  

If you are using the gentoo ebuild then this thread http://forums.gentoo.org/viewtopic-t-835570-highlight-boinc.html from the Gentoo forums should help you Ulrar.

--background /


needs to be added to the eval statement.
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 35561 · Report as offensive

Message boards : Questions and problems : [Gentoo] Boinc stop the boot

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.