Changeset 2186


Ignore:
Timestamp:
19/02/07 16:45:13 (12 years ago)
Author:
pjkersha
Message:

python/share/ndg-sm, python/share/ndg-aa, python/share/ndg-log, python/share/ndg-gk and
python/share/ndg-ca: fixed so that path to tac file is checked within start(). This
means that if the path is broken you can still run the stop and status commands.

Location:
TI12-security/trunk/python/share
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/share/ndg-aa

    r2184 r2186  
    2323# required 
    2424uid="globus" 
    25  
    26 # Set path to Twisted 'tac' file 
     25gid="globus" 
     26 
     27# Set path to Twisted 'tac' file - use prefixDir + srvSubDir combination or 
     28# set tacFilePath directly 
    2729prefixDir=$(dirname $(dirname $(type -p python))) 
    28 if [ ! -d ${prefixDir} ]; then 
    29     failure $"Path to python root not found" 
    30     exit 1 
    31 fi 
    32  
    3330srvSubDir=lib/site-packages/ndg/security/server/AttAuthority 
    3431tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    35 if [ ! -f ${tacFilePath} ]; then 
    36     failure $"Path to tac file not found" 
    37     exit 1 
    38 fi 
    3932 
    4033serviceName=${0##*/} 
     
    7568    # problems with the daemon, it also closes some security problems 
    7669    ulimit -S -c 0 >/dev/null 2>&1 
     70 
     71        if [ ! -f ${tacFilePath} ]; then 
     72            failure $"Path to python .tac file not found:" 
     73            return 
     74        fi 
    7775 
    7876    # Echo daemon 
  • TI12-security/trunk/python/share/ndg-ca

    r2184 r2186  
    2323# required 
    2424uid="globus" 
    25  
    26 # Set path to Twisted 'tac' file 
     25gid="globus" 
     26 
     27# Set path to Twisted 'tac' file - use prefixDir + srvSubDir combination or 
     28# set tacFilePath directly 
    2729prefixDir=$(dirname $(dirname $(type -p python))) 
    28 if [ ! -d ${prefixDir} ]; then 
    29     failure $"Path to python root not found" 
    30     exit 1 
    31 fi 
    32  
    3330srvSubDir=lib/site-packages/ndg/security/server/ca 
    3431tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    35 if [ ! -f ${tacFilePath} ]; then 
    36     failure $"Path to tac file not found" 
    37     exit 1 
    38 fi 
    3932 
    4033serviceName=${0##*/} 
     
    7568    # problems with the daemon, it also closes some security problems 
    7669    ulimit -S -c 0 >/dev/null 2>&1 
     70 
     71        if [ ! -f ${tacFilePath} ]; then 
     72            failure $"Path to python .tac file not found:" 
     73            return 
     74        fi 
    7775 
    7876    # Echo daemon 
  • TI12-security/trunk/python/share/ndg-gk

    r2184 r2186  
    2323# required 
    2424uid="globus" 
    25  
    26 # Set path to Twisted 'tac' file 
     25gid="globus" 
     26 
     27# Set path to Twisted 'tac' file - use prefixDir + srvSubDir combination or 
     28# set tacFilePath directly 
    2729prefixDir=$(dirname $(dirname $(type -p python))) 
    28 if [ ! -d ${prefixDir} ]; then 
    29     failure $"Path to python root not found" 
    30     exit 1 
    31 fi 
    32  
    3330srvSubDir=lib/site-packages/ndg/security/server/Gatekeeper 
    3431tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    35 if [ ! -f ${tacFilePath} ]; then 
    36     failure $"Path to tac file not found" 
    37     exit 1 
    38 fi 
    3932 
    4033serviceName=${0##*/} 
     
    7568    # problems with the daemon, it also closes some security problems 
    7669    ulimit -S -c 0 >/dev/null 2>&1 
     70 
     71        if [ ! -f ${tacFilePath} ]; then 
     72            failure $"Path to python .tac file not found:" 
     73            return 
     74        fi 
    7775 
    7876    # Echo daemon 
  • TI12-security/trunk/python/share/ndg-log

    r2184 r2186  
    2525gid="globus" 
    2626 
    27 # Set path to Twisted 'tac' file 
     27# Set path to Twisted 'tac' file - use prefixDir + srvSubDir combination or 
     28# set tacFilePath directly 
    2829prefixDir=$(dirname $(dirname $(type -p python))) 
    29 if [ ! -d ${prefixDir} ]; then 
    30     failure $"Path to python root not found" 
    31     exit 1 
    32 fi 
    33  
    3430srvSubDir=lib/site-packages/ndg/security/server/Log 
    3531tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    36 if [ ! -f ${tacFilePath} ]; then 
    37     failure $"Path to tac file not found" 
    38     exit 1 
    39 fi 
    4032 
    4133serviceName=${0##*/} 
     
    7668    # problems with the daemon, it also closes some security problems 
    7769    ulimit -S -c 0 >/dev/null 2>&1 
     70 
     71        if [ ! -f ${tacFilePath} ]; then 
     72            failure $"Path to python .tac file not found:" 
     73            return 
     74        fi 
    7875 
    7976    # Echo daemon 
  • TI12-security/trunk/python/share/ndg-sm

    r2184 r2186  
    2525gid="globus" 
    2626 
    27 # Set path to Twisted 'tac' file 
     27# Set path to Twisted 'tac' file - use prefixDir + srvSubDir combination or 
     28# set tacFilePath directly 
    2829prefixDir=$(dirname $(dirname $(type -p python))) 
    29 if [ ! -d ${prefixDir} ]; then 
    30     failure $"Path to python root not found" 
    31     exit 1 
    32 fi 
    33  
    3430srvSubDir=lib/site-packages/ndg/security/server/SessionMgr 
    3531tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    36 if [ ! -f ${tacFilePath} ]; then 
    37     failure $"Path to tac file not found" 
    38     exit 1 
    39 fi 
    4032 
    4133serviceName=${0##*/} 
     
    7668    # problems with the daemon, it also closes some security problems 
    7769    ulimit -S -c 0 >/dev/null 2>&1 
     70 
     71        if [ ! -f ${tacFilePath} ]; then 
     72            failure $"Path to python .tac file not found:" 
     73            return 
     74        fi 
    7875 
    7976    # Echo daemon 
Note: See TracChangeset for help on using the changeset viewer.