Changeset a3560cd


Ignore:
Timestamp:
02/28/14 08:50:34 (6 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2
Children:
a9fff64
Parents:
28f8495
Message:

Add hourly/30min/10min options to life-preserver replication frequency

Location:
src-sh/lpreserver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/functions.sh

    r042dc70 ra3560cd  
    172172 
    173173  case $TIME in 
    174      [0-9][0-9]|sync) ;; 
     174     [0-9][0-9]|sync|hour|30min|10min) ;; 
    175175     *) exit_err "Invalid time: $TIME" 
    176176  esac 
     
    191191 
    192192  if [ "$TIME" != "sync" ] ; then 
     193    case $TIME in 
     194        hour) cTime="0     *" ;; 
     195       30min) cTime="*/30     *" ;; 
     196       10min) cTime="*/10     *" ;; 
     197           *) cTime="0     *" ;; 
     198    esac 
    193199    cronscript="${PROGDIR}/backend/runrep.sh" 
    194     cLine="0    $TIME       *       *       *" 
     200    cLine="$cTime       *       *       *" 
    195201    echo -e "$cLine\troot    ${cronscript} ${LDATA}" >> /etc/crontab 
    196202  fi 
  • src-sh/lpreserver/lpreserver

    r9cd0fa0 ra3560cd  
    155155 
    156156        add <remotehost> <user> <port> <hostdataset> <remotedataset> <time> 
     157 
     158        <time> = XX/sync/hour/30min/10min 
    157159 
    158160        Example 1:  
Note: See TracChangeset for help on using the changeset viewer.