/[pdpsoft]/trunk/nl.nikhef.pdp.wn-env/epilogue.user
ViewVC logotype

Annotation of /trunk/nl.nikhef.pdp.wn-env/epilogue.user

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2553 - (hide annotations) (download)
Fri Jun 22 15:22:31 2012 UTC (10 years ago) by janjust
File size: 768 byte(s)
First version of WLCG Worker Node Environment scripts


1 janjust 2553 #!/bin/bash
2     # WLCG Worker Node Environment
3     # PBS Epilogue script: clean up the $JOBFEATURES file`
4     #
5     # Config settings for the wlcg-wn-env scripts
6     #
7     # Copyright (c) 2012 by
8     # Jan Just Keijser (janjust@nikhef.nl)
9     # Nikhef
10     # Amsterdam
11     # The Netherlands
12    
13     # a PBS user epilogue script is called with up to 7 parameters, out of which we
14     # are only interesed in $1:
15     # $1 = jobid
16    
17     # overrule any environment variable setting with the parameter supplied to the script
18     PBS_JOBID=$1
19    
20     # Get the configuration setting from the /etc/wlcg-wn-env.conf file
21     eval "JOBFEATURES=`sed -n '/^jobfeatures/s/^jobfeatures *= *\(.*\)/\1/p' /etc/wlcg-wn-env.conf 2> /dev/null`"
22     # fallback if setting is missing
23     JOBFEATURES=${TMPDIR:-/tmp}/jobfeatures.${PBS_JOBID}
24    
25     rm -f ${JOBFEATURES}
26    

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28