1) Forums : Technical Support : BOINC 6.2.14 release to public for all platforms (Message 6865)
Posted 1 Aug 2008 by ironcold
Post:
Thanks ironcold, but I don\'t know what my needs are as you post here > Set BOINC_HOME, BOINC_BIN and RUN_AS to your needs.

The whole Boinc Directory as far as I know is located in the /home/poorboy/BOINC Folder, I\'m unaware of any files being located in any other Folders ... !!!

If I do a file search for boinc everything that comes up points to the /home/poorboy/BOINC Folder.


In your case you would have to set
BOINC_HOME=/home/poorboy/BOINC
BOINC_BIN=/home/poorboy/BOINC/boinc
RUN_AS=poorboy

2) Forums : Technical Support : BOINC 6.2.14 release to public for all platforms (Message 6861)
Posted 1 Aug 2008 by ironcold
Post:

Now all I have to do is figure out how to get it to start up automatically after re-booting the Box or just starting it back up again. I like to have the client start Automatically since we get Thunderstorms rolling thru every now & then and they will kick out some of the Box\'s. But the Box\'s re-start again so I want BOINC to start again too since all they are are dedicated crunchers only.


copy the script as root to:
/etc/init.d/boincctl

Set BOINC_HOME, BOINC_BIN and RUN_AS to your needs.
then:
chmod a+x /etc/init.d/boincctl
insserv /etc/init.d/boincctl

and BOINC will start automatically at boot.



#!/bin/sh

# boincctl - Control boinc. Stop it/Start it/Restart it. Originally
# meant to be used as a boot time script so that boinc starts
# at boot time, but can be used any time. For a boot time script
# put this in /etc/init.d and make the appropriate links from
# the appropriate run level areas (ie. /etc/rc3.d). (This was
# developed on RedHat 9 so I know what the boot areas are there.
# It should also work on Solaris, I\'m not familiar with other
# flavors of Linix/UNIX.)

# Author: Charles Dennett/Rochester, NY USA.
# Email: dennett@rochester.rr.com
# Date: December 12, 2003.
# Version: 1.0
#
# History: Version 1.1. May 20. 2004. Update stop function to use SIGTERM (15).
#
# Comment: Copyright by the author. Feel free to make modifications.
# However, please keep these comments intact.

# Use: To start: boincctl start
# To stop: boincctl stop
# To restart: boincctl restart
# Status: boincctl status

#
# Variables that will need to be configured.
#
# BOINC_HOME: The directory where boinc will run. It should be run
# in its own directory to keep its files and subdirectories
# separate form others.
#
# BOINC_BIN: The full path to the boinc executable.
#
# RUN_AS: Username that boinc is to run as.
#
# BOINC_OUT: File to direct output from boinc. If you don\'t want this,
# set it to /dev/null.
#
# BOINC_PARMS: Any command line parameters for boinc you wish to pass to
# it. If you don\'t want any, simply use a null list (\"\").

BOINC_HOME=/home/<username>/BOINC
BOINC_BIN=/home/<username>/BOINC/boinc
RUN_AS=<username>
BOINC_OUT=boinc.out
BOINC_ERR=boinc.err
#BOINC_PARMS=\"\"
BOINC_PARMS=\"--daemon --allow_remote_gui_rpc\"

# No other changes needed below this, most likely.

# Functions

#. /etc/init.d/functions

start()
{
echo \"Starting boinc\"
#echo $SU_CMD
eval $SU_CMD
}

stop()
{
echo -n \"Stopping boinc\"
# pkill -15 `basename $BOINC_BIN`
killproc `basename $BOINC_BIN` -15
}

restart()
{
stop
echo \"Be patient. Waiting 10 seconds for all to stop.\"
sleep 10
start
}

#----------------------------------------------------------------------------
#
# Start of mainline code
#

# If the user running this script is not the user we want boinc to run as, set
# up the su command so that we can become that user. Note, we will have to
# know this user\'s password. If this script is run at boot time, it is root
# that is running this script and no password is required.

WHO_AM_I=`whoami`
CMD=\"$BOINC_BIN $BOINC_PARMS >> $BOINC_OUT 2>> $BOINC_ERR &\"

if [ \"$WHO_AM_I\" != \"$RUN_AS\" ]; then
SU_CMD=\"su $RUN_AS -c \\\"$CMD\\\"\"
else
SU_CMD=$CMD
fi



# Go to where we want boinc to run

cd $BOINC_HOME

case \"$1\" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
echo \"What do I do here for status?\"
tail -20 $BOINC_OUT
;;
*)
echo \"Usage: `basename $0` start|stop|restart|status\"
exit 1
;;
esac
3) Forums : Technical Support : CAMB 2.12 - same problem (Message 5442)
Posted 24 Mar 2008 by ironcold
Post:
Hi,
I\'ve got the same problem here with Linux/X86. On my Linux/X86_64 machines everything works fine.

greetings Harald