#!/bin/sh WORKER_PLATFORM=sl3 DIALPKG=dial-1.21 PKGMGR_ENV=/usatlas/ada_sw/apps/pkgmgr/site.env echo Starting server with GSI authentication echo Worker platform is $WORKER_PLATFORM echo DIAL package is $DIALPKG if [ -r pid ]; then echo Found pid `cat pid` echo Kill process and remove file before starting exit 1 fi # Define location of host certificate and key. GRID_SECURITY_DIR=$HOME/grid-security export GRID_SECURITY_DIR X509_USER_CERT=$GRID_SECURITY_DIR/hostcert.pem export X509_USER_CERT X509_USER_KEY=$GRID_SECURITY_DIR/hostkey.pem export X509_USER_KEY # Clean up log files. rm -f *.log rm -f dial_* # Setup DIAL. . $PKGMGR_ENV DIALDIR=`pkgmgr locate $DIALPKG` if [ -z "$DIALDIR" ]; then echo "Unable to find $DIALPKG" exit 1 fi DIAL_CATALOG_CONF=/afs/usatlas.bnl.gov/users/dial/public/catalog/table_params . $DIALDIR/bin/dialsetup.sh $DIALPKG dialconf_atlas > stdout.log 2>&1 if [ $STAT != 0 ]; then echo DIAL setup failed exit $STAT; fi # Use new application area. export DIAL_APPS=$HOME/local/apps # Task area. export DIAL_TASKS=$HOME/local/tasks/$WORKER_PLATFORM # Job directories. export DIAL_JOBS=$HOME/local/jobs # Job directories for compound jobs. export DIAL_MASTER_JOBS=$HOME/local/jobs # Define taskbuilder #export DIAL_TASKBUILDER=/usatlas/u/dial/server/adial01/taskbuilder-$WORKER_PLATFORM # Change unique ID server. #DIAL_UIDS=WsClientUniqueIdGenerator:http://adial01.usatlas.bnl.gov:20002:true # GSI plugin debug level: 0 for no messages; 3 for max export GSI_PLUGIN_DEBUG_LEVEL=0 # Record the environment. set > env.log # Start the service. OPT="xerces-c:mysqlpp:dataset_sql:dataset_id:dataset_base:dataset_catalog:dataset_split:dataset_xml:dataset_mysqlpp:dial_credential:dial_task:dial_job:dial_ws_sched:dial_ws_uid:dial_scripted:dial_lsf:dataset_file:dataset_CBNT:dataset_magda:dial_condor" OPT="$OPT:lcg_DataSvc:lcg_POOLCore:GaudiKernel:PathResolver:AthenaKernel:CLIDSvcLib:EventInfo:dataset_atlaspool" OPT="$OPT:Cint:Core:Matrix:Hist:Tree:Graf:Gui:Graf3d:Html:RootKernel:dataset_root" OPT="$OPT:scheduler" dialws $OPT `cat port` server.log gsi >> stdout.log 2>&1& echo Started service