Changeset 429
- Timestamp:
- 09/28/2009 23:25:40 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
confaudit.8 (modified) (3 diffs)
-
confaudit.in (modified) (2 diffs)
-
confexport.8 (modified) (2 diffs)
-
confexport.in (modified) (1 diff)
-
confsync.8 (modified) (3 diffs)
-
confsync.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
-
branches/confman-1.9/confaudit.8
r404 r429 33 33 .Sh SYNOPSIS 34 34 .Nm 35 .Op Fl s 35 36 .Op Fl q 36 .Op Fl s37 .Op Fl d 37 38 .Nm 38 39 .Fl h … … 47 48 is intended to be invoked via 48 49 .Xr cron 8 . 49 When invoked with50 .Fl q ,51 .Nm52 will report only whether files differ and not the actual differences (See53 .Xr diff 1) .54 .Fl h55 will cause56 .Nm57 to display the usage statement and exit.58 50 .Pp 59 51 The … … 67 59 .Nm 68 60 across multiple managed hosts. 61 .Pp 62 When invoked with 63 .Fl q , 64 .Nm 65 will report only whether files differ and not the actual differences (See 66 .Xr diff 1) . 67 .Pp 68 The 69 .Fl d 70 option can be used to print additional debugging information. 71 .Pp 72 When launched with 73 .Fl h , 74 .Nm 75 will display the usage statement and exit. 69 76 .Pp 70 77 .Nm -
branches/confman-1.9/confaudit.in
r404 r429 32 32 else 33 33 echo "Can't find confmancommon.sh. Exiting." >&2 34 exit 1 34 35 fi 35 36 36 37 function print_help { 37 echo "usage: $0 [-d] [-q]" >&4 38 echo "usage: $0 [-s] [-q] [-d]" >&4 39 echo "Type '$0 -h' to display this help and exit." >&4 38 40 exit ${1:-0} 39 41 } … … 41 43 quiet=false 42 44 sleep_mode=false 43 while getopts " dqsh" opt 2>&4 ; do45 while getopts "sqdh" opt 2>&4 ; do 44 46 case $opt in 47 s) sleep_mode=true ;; 48 q) quiet=true ;; 45 49 d) DEBUG=true ;; 46 q) quiet=true ;;47 s) sleep_mode=true ;;48 50 h) print_help 0 ;; 49 51 *) print_help 1 ;; -
branches/confman-1.9/confexport.8
r363 r429 33 33 .Sh SYNOPSIS 34 34 .Nm 35 .Op Fl d 35 36 .Nm 36 37 .Fl h … … 44 45 repository for use by hosts running 45 46 .Xr confsync 8 . 47 .Pp 48 The 49 .Fl d 50 option can be used to print additional debugging information. 46 51 .Pp 47 52 When launched with -
branches/confman-1.9/confexport.in
r421 r429 44 44 45 45 function print_help { 46 echo "usage: $0 [-d]">&4 46 echo "usage: $0 [-d]" >&4 47 echo "Type '$0 -h' to display this help and exit." >&4 47 48 exit ${1:-0} 48 49 } 49 50 50 while getopts " hd" OPT 2>&4 ; do51 while getopts "dh" OPT 2>&4 ; do 51 52 case "$OPT" in 52 53 d) DEBUG=true ;; -
branches/confman-1.9/confsync.8
r404 r429 33 33 .Sh SYNOPSIS 34 34 .Nm 35 .Op Fl f 35 36 .Op Fl s 37 .Op Fl d 36 38 .Nm 37 39 .Fl h … … 47 49 operation without the overhead of a working copy. 48 50 .Pp 51 If the system is already up to date, 52 .Nm 53 will exit without making any changes. This behavior can be overridden with 54 the 55 .Fl f 56 option, which will force 57 .Nm 58 to run even if the system revision equals the tar revision. This is useful 59 when files are known to have been modified on the live filesystem. Note that 60 the 61 .Fl f 62 option cannot be used to sync a tar revision less than the system revision. 63 .Pp 49 64 The 50 65 .Fl s … … 57 72 .Nm 58 73 across multiple managed hosts. 74 .Pp 75 The 76 .Fl d 77 option can be used to print additional debugging information. 59 78 .Pp 60 79 When launched with -
branches/confman-1.9/confsync.in
r404 r429 35 35 else 36 36 echo "Can't find confmancommon.sh. Exiting." >&2 37 exit 1 37 38 fi 38 39 39 40 function print_help { 40 echo "usage: $0 [-d]" >&4 41 echo "usage: $0 [-f] [-s] [-d]" >&4 42 echo "Type '$0 -h' to display this help and exit." >&4 41 43 exit ${1:-0} 42 44 } 43 45 46 FORCE=false 44 47 sleep_mode=false 45 while getopts " hsd" OPT 2>&4 ; do48 while getopts "fsdh" OPT 2>&4 ; do 46 49 case $OPT in 50 f) FORCE=true ;; 51 s) sleep_mode=true ;; 47 52 d) DEBUG=true ;; 48 s) sleep_mode=true ;;49 53 h) print_help 0;; 50 54 *) print_help 1;; … … 115 119 echo "Error: $tarpath is out of date. Exiting without making changes." >&2 116 120 conf_markdirty 117 rm -rf $tmpdir 118 exit 1 121 conf_cleanExit 1 119 122 fi 120 123 121 if [ -n "$sys_revision" ] && [ $tar_revision -le $sys_revision ] ; then 122 echo "System is up to date." | conf_logger 123 conf_unlock_system 124 rm -rf $tmpdir 125 trap EXIT 126 exit 0 124 if [ -n "$sys_revision" ] ; then 125 if $FORCE && [ $tar_revision -lt $sys_revision ] ; then 126 echo "Error: $tarpath is out of date. Exiting without making changes." >&2 127 conf_cleanExit 1 128 elif ! $FORCE && [ $tar_revision -le $sys_revision ] ; then 129 echo "System is up to date." | conf_logger 130 conf_cleanExit 0 131 fi 127 132 fi 128 133
Note: See TracChangeset
for help on using the changeset viewer.
