Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 08:39:08

0001 #!/bin/bash
0002 
0003 # import env vars from sysconfig
0004 source @@virtual_env@@/etc/sysconfig/panda_server
0005 
0006 NOVOMS=${X509_USER_PROXY}_novoms
0007 
0008 voms-proxy-init -rfc -voms atlas:/atlas/Role=production -out $X509_USER_PROXY -valid 96:00 -cert=$NOVOMS
0009 
0010 # check lifetime of certificate
0011 grid-proxy-info -e -h 504 -f $NOVOMS
0012 if [ $? -ne 0 ]; then
0013   echo $NOVOMS expires in 3 weeks on `hostname` | mail -s "WARNING : Grid certificate expires soon on panda server" atlas-adc-panda-service@cern.ch
0014 fi
0015 
0016 # check lifetime of certificate
0017 voms-proxy-info -exists -hours 72 -file $X509_USER_PROXY
0018 if [ $? -ne 0 ]; then
0019   echo $X509_USER_PROXY expires in 3 days on `hostname` | mail -s "WARNING : Grid proxy expires soon on panda server" atlas-adc-panda-service@cern.ch
0020 fi
0021