Ignore:
Timestamp:
19/02/07 16:45:13 (13 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.