#!/bin/sh # Startup file for uid service. echo Starting server with GSI authentication 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/dial/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 # Setup DIAL. . /usatlas/ada_sw/apps/pkgmgr/site.env DIALPKG=dial-1.20 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 # Record the environment. set > env.log # Start the service. OPT="dataset_id:dial_ws_uid:uid" dialws $OPT `cat port` server.log gsi >> stdout.log 2>&1& echo Started service