Changeset 402


Ignore:
Timestamp:
07/24/2009 17:51:27 (3 years ago)
Author:
blee
Message:

Implement a configurable delay command for confsync and confaudit.

Fixes #55

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/confaudit.in

    r399 r402  
    6060conf_lock_system 
    6161 
     62if [ -n "${CONF_AUDIT_DELAY_CMD}" ]; then 
     63    echo "Executing delay command: ${CONF_AUDIT_DELAY_CMD}" 
     64    ${CONF_AUDIT_DELAY_CMD} 
     65fi 
     66 
    6267# Set up our "Working Copy" 
    6368tmpdir=$(conf_tmp_dir) 
  • trunk/confman.conf.in

    r363 r402  
    7373CONF_SSH_KEY="/root/.ssh/id_rsa" 
    7474 
     75# A command to delay the execution of confsync 
     76CONF_SYNC_DELAY_CMD="" 
     77 
     78# A command to delay the execution of confaudit 
     79CONF_AUDIT_DELAY_CMD="" 
     80 
    7581# Enable or disable debugging 
    7682DEBUG="false" 
  • trunk/confsync.in

    r399 r402  
    6060 
    6161conf_lock_system 
     62 
     63if [ -n "${CONF_SYNC_DELAY_CMD}" ]; then 
     64    echo "Executing delay command: ${CONF_SYNC_DELAY_CMD}" 
     65    ${CONF_SYNC_DELAY_CMD} 
     66fi 
    6267 
    6368# Set up our "Working Copy" 
Note: See TracChangeset for help on using the changeset viewer.