#!/bin/sh # Copyrights : CNRS # Author : Oleg Lodygensky # Acknowledgment : XtremWeb-HEP is based on XtremWeb 1.8.0 by inria : http://www.xtremweb.net/ # Web : http://www.xtremweb-hep.org # # This file is part of XtremWeb-HEP. # # XtremWeb-HEP is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # XtremWeb-HEP is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with XtremWeb-HEP. If not, see . # # # # # File : xtremweb.server # # Purpose : This calls xtremweb with the right parameters # # Params : [start | stop | restart | console ] [--jvmopts] # --jvmopts tells to optimize java (this may be source to troubles :( ) # # Description : this manages the XWHEP server part # # bin file : ./xtremweb # # return : 0 on success # 1 on usage error # 2 on file error (files not found) # 3 on user error (user not found) # 4 if not in the expected state : # ** stop asked but not running # ** start asked but already running # # chkconfig: 345 99 99 # processname: /opt/XWHEP-1.0.25/bin/xtremweb.server # config: /opt/XWHEP-1.0.25/conf/xtremweb.server.conf # description: XWHEP DesktopGrid server # # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # ** DO NOT EDIT ** # ** This file is generated by install script ** # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< # PRG=$0 # # resolve symlinks # while [ -h "$PRG" ]; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` if expr "$link" : '^/' 2> /dev/null >/dev/null; then PRG="$link" else PRG="`dirname $PRG`/$link" fi done progdir=`dirname $PRG` progname=`basename $0` ###################################################### # Main ###################################################### # force it otherwise $progname may contain S99xtremweb.server (e.g. if linked from /etc/rc3.d/S99xtremweb.server") PROG="xtremweb.server" #PROG=$progname #ROOTDIR="$progdir/.." currentDir=`pwd` cd $progdir/.. ROOTDIR=`pwd` cd $currentDir $ROOTDIR/bin/xtremweb $PROG $ROOTDIR $* # # End of file #