IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2013, 3:30:10 PM (13 years ago)
Author:
watersc1
Message:

I think this is clean.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippm/FilesMonitoring/NodeRelated/refresh_table.py

    r35945 r35981  
    1919    loggingLevel = logging.INFO #
    2020    skip_stages = []
    21     updatedb_binary = '/home/panstarrs/schastel/local/bin/updatedb'
    22     locate_binary = '/home/panstarrs/schastel/local/bin/locate'
    23     mlocate_db_template = '/export/%s.%s/schastel/mlocate/%s.%s.%s.mlocate_db'
     21# Place we find all the installed IPP stuff
     22    bin_directory = "%s/%s/bin" % (os.environ['PSCONFDIR'], os.environ['PSCONFIG'])
     23    share_directory = "%s/%s/share/filemon/" % (os.environ['PSCONFDIR'], os.environ['PSCONFIG'])
     24
     25# Templates for things we'll either create or read
     26    node_directory = '/export/%s.%s/ipp_filemon/'
     27    mlocate_db_template = "%s/%s", (node_directory,'mlocate/%s.%s.%s.mlocate_db')
    2428    lock_directory = '/tmp/diskMonitoring/%s' # disk
    2529    lock_filename_template = '%s/lock.%s'
    2630    nebulous_directory_template = '/export/%s.%s/nebulous/%s'
    27     update_table_undefined_python_script = '/home/panstarrs/schastel/dev/FilesMonitoring/NodeRelated/update_table_undefined.py'
    28     update_table_python_script = '/home/panstarrs/schastel/dev/FilesMonitoring/NodeRelated/update_table.py'
     31
     32# Locations of the binaries we'll run
     33    updatedb_binary = '%s/updatedb' % bin_directory
     34    locate_binary = '%s/locate' % bin_directory
     35    update_table_undefined_python_script = "%s/update_table_undefined.py" % bin_directory
     36    update_table_python_script = '%s/update_table.py' % bin_directory
     37
    2938    disk = "0" # Most of the nodes have only one disk /export/<node name>.0
    3039    next_directory = None
     
    516525    formatter = logging.Formatter('%(asctime)s | %(levelname)7s | %(message)s',
    517526                                  '%Y-%m-%dT%H:%M:%S')
    518     log_directory = '/data/%s.0/schastel/logs' % (nodename)
     527#    log_directory = '/data/%s.0/schastel/logs' % (nodename)
     528    log_directory = ("%s/logs" % (node_directory)) % (nodename, disk)
    519529    log_filename = '%s/%s_refresh.log' % (log_directory, nodename)
    520530    try:
Note: See TracChangeset for help on using the changeset viewer.