Questions and Answers :
Unix/Linux :
Can't start boinc in background
Message board moderation
Author | Message |
---|---|
Send message Joined: 23 Oct 04 Posts: 11 Credit: 757,091 RAC: 0 |
Hello! I finally managed to start up the boinc software. Poorly, it doesnt start the way I need it -in the backgound. The following is working: musik@debian:~ > cd boinc musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu 2005-01-17 15:24:40 [---] Starting BOINC client version 4.13 for i686-pc-linux-gnu 2005-01-17 15:24:40 [climateprediction.net] Project prefs: no separate prefs for home; using your defaults 2005-01-17 15:24:40 [climateprediction.net] Host ID is 86720 2005-01-17 15:24:40 [---] General prefs: from climateprediction.net (last modified 2004-10-28 12:34:57) 2005-01-17 15:24:40 [---] General prefs: no separate prefs for home; using your defaults 2005-01-17 15:24:40 [climateprediction.net] Resuming computation for result 2tsm_100153258_1 using hadsm3 version 4.04 Starting model in /exports/mp3/boinc/projects/climateprediction.net... Created shared memory region key = 26075 Env Used=LD_LIBRARY_PATH=/exports/mp3/boinc/projects/climateprediction.net:/usr/local/lib:/usr/lib:/lib Copying files for startup... In pre_initialise_phase (part 1 of 3) In initialise_phase (part 2 of 3) In startup_phase (part 3 of 3) Starting model ID 2tsm_100153258 Phase 1 Stack size=4096.00 MB Waiting for model startup, this may take a minute... 2tsm_100153258 - PH 1 TS 000001 - 00/00/0000 00:00 - H:M:S=0000:00:00 AVG= 0.00 DLT= 0.00 2005-01-17 15:24:45 [---] Received signal 2 2005-01-17 15:24:45 [---] Exit requested by user musik@debian:~/boinc > The way, too: musik@debian:~ > cd boinc musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu >>/dev/null Now, I need to put this into the background. I tried to use this script: http://noether.vassar.edu/~myers/help/boinc/init.d-boinc but, that doesnt help. I receive a "Done", when starting this up, but I'm not completely sure about it, as the command : PID=`pidof $BOINCEXE` if [ "$PID" != "" ]; then echo_success else echo_failure fi doesnt work. Anyway: top doesn't show me the process, so I believe, it hasn't been started (properly). Thanks for advice! cu, Stefan By the way: I'm running a SuSE Linux 7.2 box, with almost up-to-date software. Kernel is 2.4.10. I CAN connect to almost all pages, except for the cpdn / boinc pages. The data have been download onto a university's computer and the transfered to my malade box. PS2: please dont ask me about the box's name, it IS a SuSE box... |
Send message Joined: 5 Aug 04 Posts: 30 Credit: 422,225 RAC: 0 |
Hello! have you tried this: musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu & The & sends the process to the background. If you want to write the output to a file you can write: musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu >> boinc-output.txt & cu, josti |
Send message Joined: 23 Oct 04 Posts: 11 Credit: 757,091 RAC: 0 |
> Hello! > > have you tried this: > musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu & > > The & sends the process to the background. > > If you want to write the output to a file you can write: > musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu >> > boinc-output.txt & Hello josti! No, I haven´t yet, but that´s what I´ll try next. Thanks! Stefan |
Send message Joined: 23 Oct 04 Posts: 11 Credit: 757,091 RAC: 0 |
Hello! > > have you tried this: > musik@debian:~/boinc > ./boinc_4.13_i686-pc-linux-gnu & > > The & sends the process to the background. Nope. That doesnt help. bye, Stefan |
Send message Joined: 4 Sep 04 Posts: 61 Credit: 80,585 RAC: 0 |
I run BOINC as a cron job: # Start BOINC */10 * * * * cd /home/trane/boinc; ./boinc_4.19_i686-pc-linux-gnu 1>>./boinclog 2>>./boincerr Set up the job under your normal user account. It will start automatically regardless of whether you're logged in. |
Send message Joined: 18 Apr 05 Posts: 1 Credit: 794 RAC: 0 |
> I run BOINC as a cron job: > > # Start BOINC > */10 * * * * cd /home/trane/boinc; ./boinc_4.19_i686-pc-linux-gnu > 1>>./boinclog > 2>>./boincerr > > Set up the job under your normal user account. It will start automatically > regardless of whether you're logged in. > Another way of starting BOINC without intervention is to use an init script. You will need root access to do this. The following is the init script /etc/init.d/boinc: #!/bin/sh # # BOINC init script # # chkconfig: 345 98 10 # description: control script for boinc # # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -x /boinc_4.19_i686-pc-linux-gnu ] || exit 0 # See how we were called. case "$1" in start) su tzt83492 -c "cd /home/tzt83492/cp ; ./boinc_4.19_i686-pc-linux-gnu >> boinc.log 2>&1" & ;; stop) # Stop daemons. killproc boinc_4.19_i686-pc-linux-gnu TERM ;; status) status boinc_4.19_i686-pc-linux-gnu ;; restart) $0 stop $0 start ;; reload) $0 stop $0 start ;; *) gprintf "Usage: boinc {start|stop|restart|status}\n" exit 1 esac exit 0 -------------------------- You will need to edit this and replace with the relevant path. Once this script is in place run chkconfig --add boinc and it will start next time the system is rebooted or when you run "/etc/init.d/boinc start" |
©2024 cpdn.org