Changeset 35981
- Timestamp:
- Aug 20, 2013, 3:30:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippm/FilesMonitoring/NodeRelated/refresh_table.py
r35945 r35981 19 19 loggingLevel = logging.INFO # 20 20 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') 24 28 lock_directory = '/tmp/diskMonitoring/%s' # disk 25 29 lock_filename_template = '%s/lock.%s' 26 30 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 29 38 disk = "0" # Most of the nodes have only one disk /export/<node name>.0 30 39 next_directory = None … … 516 525 formatter = logging.Formatter('%(asctime)s | %(levelname)7s | %(message)s', 517 526 '%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) 519 529 log_filename = '%s/%s_refresh.log' % (log_directory, nodename) 520 530 try:
Note:
See TracChangeset
for help on using the changeset viewer.
