#!/bin/sh #----------------------------------------------------------------------------# # Hobbit client bootup script. # # # # This invokes hobbitlaunch, which in turn runs the Hobbit client and any # # extensions configured. # # # # Copyright (C) 2005-2006 Henrik Storner # # "status" section (C) Scott Smith 2006 # # # # This program is released under the GNU General Public License (GPL), # # version 2. See the file "COPYING" for details. # # # #----------------------------------------------------------------------------# # # $Id: launchclient.sh,v 1.13 2006-07-14 21:25:19 henrik Exp $ # Include hobbit defaults if available if [ -f /etc/defaults/hobbitclient ] ; then . /etc/defaults/hobbitclient fi # Default settings for this client MACHINEDOTS="`uname -n`" # This systems hostname BBOSTYPE="`uname -s | tr '[A-Z]' '[a-z]'`" # This systems operating system in lowercase BBOSSCRIPT="hobbitclient-$BBOSTYPE.sh" OLDDIR="`pwd`" cd "`dirname $0`" HOBBITCLIENTHOME="`pwd`" cd "$OLDDIR" MACHINE="`echo $MACHINEDOTS | sed -e 's/\./,/g'`" export MACHINE MACHINEDOTS BBOSTYPE BBOSSCRIPT HOBBITCLIENTHOME CONFIGCLASS #exec $HOBBITCLIENTHOME/bin/hobbitlaunch `eval echo $@` exec $HOBBITCLIENTHOME/bin/hobbitlaunch --config=$HOBBITCLIENTHOME/etc/clientlaunch.cfg --log=$HOBBITCLIENTHOME/logs/clientlaunch.log --pidfile=$HOBBITCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid --no-daemon