Changeset 2182


Ignore:
Timestamp:
19/02/07 14:27:18 (12 years ago)
Author:
pjkersha
Message:

Tidied up indents for new code.

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

Legend:

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

    r2181 r2182  
    2727prefixDir=$(dirname $(dirname $(type -p python))) 
    2828if [ ! -d ${prefixDir} ]; then 
    29         failure $"Path to python root not found" 
    30         exit 1 
     29    failure $"Path to python root not found" 
     30    exit 1 
    3131fi 
    3232 
     
    3434tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    3535if [ ! -f ${tacFilePath} ]; then 
    36         failure $"Path to tac file not found" 
    37         exit 1 
     36    failure $"Path to tac file not found" 
     37    exit 1 
    3838fi 
    3939 
     
    8383    RETVAL=$? 
    8484    if [ $RETVAL = 0 ]; then     
    85             # Use root privilege to move pid file to correct location - put wait  
    86             # in to give twistd some leaway 
    87             i=0 
    88             while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
    89                 sleep 1;  
    90                 let "i++";  
    91                 done 
    92                  
    93                 mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
     85        # Use root privilege to move pid file to correct location - put wait  
     86        # in to give twistd some leaway 
     87        i=0 
     88        while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
     89            sleep 1;  
     90            let "i++";  
     91        done 
     92     
     93        mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
    9494         
    9595        touch /var/lock/subsys/${serviceName}         
  • TI12-security/trunk/python/share/ndg-ca

    r2181 r2182  
    2727prefixDir=$(dirname $(dirname $(type -p python))) 
    2828if [ ! -d ${prefixDir} ]; then 
    29         failure $"Path to python root not found" 
    30         exit 1 
     29    failure $"Path to python root not found" 
     30    exit 1 
    3131fi 
    3232 
     
    3434tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    3535if [ ! -f ${tacFilePath} ]; then 
    36         failure $"Path to tac file not found" 
    37         exit 1 
     36    failure $"Path to tac file not found" 
     37    exit 1 
    3838fi 
    3939 
     
    8383    RETVAL=$? 
    8484    if [ $RETVAL = 0 ]; then     
    85             # Use root privilege to move pid file to correct location - put wait  
    86             # in to give twistd some leaway 
    87             i=0 
    88             while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
    89                 sleep 1;  
    90                 let "i++";  
    91                 done 
     85        # Use root privilege to move pid file to correct location - put wait  
     86        # in to give twistd some leaway 
     87        i=0 
     88        while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
     89            sleep 1;  
     90            let "i++";  
     91        done 
    9292                 
    93                 mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
     93        mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
    9494         
    9595        touch /var/lock/subsys/${serviceName}         
  • TI12-security/trunk/python/share/ndg-gk

    r2181 r2182  
    2727prefixDir=$(dirname $(dirname $(type -p python))) 
    2828if [ ! -d ${prefixDir} ]; then 
    29         failure $"Path to python root not found" 
    30         exit 1 
     29    failure $"Path to python root not found" 
     30    exit 1 
    3131fi 
    3232 
     
    3434tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    3535if [ ! -f ${tacFilePath} ]; then 
    36         failure $"Path to tac file not found" 
    37         exit 1 
     36    failure $"Path to tac file not found" 
     37    exit 1 
    3838fi 
    3939 
     
    8383    RETVAL=$? 
    8484    if [ $RETVAL = 0 ]; then     
    85             # Use root privilege to move pid file to correct location - put wait  
    86             # in to give twistd some leaway 
    87             i=0 
    88             while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
    89                 sleep 1;  
    90                 let "i++";  
    91                 done 
     85        # Use root privilege to move pid file to correct location - put wait  
     86        # in to give twistd some leaway 
     87        i=0 
     88        while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
     89            sleep 1;  
     90            let "i++";  
     91        done 
    9292                 
    93                 mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
     93        mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
    9494         
    9595        touch /var/lock/subsys/${serviceName}         
  • TI12-security/trunk/python/share/ndg-log

    r2181 r2182  
    2727prefixDir=$(dirname $(dirname $(type -p python))) 
    2828if [ ! -d ${prefixDir} ]; then 
    29         failure $"Path to python root not found" 
    30         exit 1 
     29    failure $"Path to python root not found" 
     30    exit 1 
    3131fi 
    3232 
     
    3434tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    3535if [ ! -f ${tacFilePath} ]; then 
    36         failure $"Path to tac file not found" 
    37         exit 1 
     36    failure $"Path to tac file not found" 
     37    exit 1 
    3838fi 
    3939 
     
    8383    RETVAL=$? 
    8484    if [ $RETVAL = 0 ]; then     
    85             # Use root privilege to move pid file to correct location - put wait  
    86             # in to give twistd some leaway 
    87             i=0 
    88             while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
    89                 sleep 1;  
    90                 let "i++";  
    91                 done 
     85        # Use root privilege to move pid file to correct location - put wait  
     86        # in to give twistd some leaway 
     87        i=0 
     88        while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
     89            sleep 1;  
     90            let "i++";  
     91        done 
    9292                 
    93                 mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
     93        mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
    9494         
    9595        touch /var/lock/subsys/${serviceName}         
  • TI12-security/trunk/python/share/ndg-sm

    r2181 r2182  
    2727prefixDir=$(dirname $(dirname $(type -p python))) 
    2828if [ ! -d ${prefixDir} ]; then 
    29         failure $"Path to python root not found" 
    30         exit 1 
     29    failure $"Path to python root not found" 
     30    exit 1 
    3131fi 
    3232 
     
    3434tacFilePath=${prefixDir}/${srvSubDir}/server-config.tac 
    3535if [ ! -f ${tacFilePath} ]; then 
    36         failure $"Path to tac file not found" 
    37         exit 1 
     36    failure $"Path to tac file not found" 
     37    exit 1 
    3838fi 
    3939 
     
    8383    RETVAL=$? 
    8484    if [ $RETVAL = 0 ]; then     
    85             # Use root privilege to move pid file to correct location - put wait  
    86             # in to give twistd some leaway 
    87             i=0 
    88             while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
    89                 sleep 1;  
    90                 let "i++";  
    91                 done 
     85        # Use root privilege to move pid file to correct location - put wait  
     86        # in to give twistd some leaway 
     87        i=0 
     88        while [ ! -f /tmp/${serviceName}.pid ] && [ "$i" -lt 10 ]; do  
     89            sleep 1;  
     90            let "i++";  
     91        done 
    9292                 
    93                 mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
     93        mv /tmp/${serviceName}.pid /var/run/${serviceName}.pid 
    9494         
    9595        touch /var/lock/subsys/${serviceName}         
Note: See TracChangeset for help on using the changeset viewer.