Changeset 403
- Timestamp:
- 07/26/2009 15:52:46 (3 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
confaudit.8 (modified) (2 diffs)
-
confaudit.in (modified) (2 diffs)
-
confman.conf.5.in (modified) (1 diff)
-
confman.conf.in (modified) (1 diff)
-
confsync.8 (modified) (2 diffs)
-
confsync.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confaudit.8
r351 r403 34 34 .Nm 35 35 .Op Fl q 36 .Op Fl s 36 37 .Nm 37 38 .Fl h … … 56 57 to display the usage statement and exit. 57 58 .Pp 59 The 60 .Fl s 61 option will cause 62 .Nm 63 to run in sleep mode. In this mode, 64 .Nm 65 will sleep for CONF_AUDIT_SLEEP seconds before executing. This can be used to 66 stagger the execution of 67 .Nm 68 across multiple managed hosts. 69 .Pp 58 70 .Nm 59 71 uses the export file that is generated by -
trunk/confaudit.in
r402 r403 40 40 41 41 quiet=false 42 while getopts "dqh" opt 2>&4 ; do 42 sleep_mode=false 43 while getopts "dqsh" opt 2>&4 ; do 43 44 case $opt in 44 45 d) DEBUG=true ;; 45 46 q) quiet=true ;; 47 s) sleep_mode=true ;; 46 48 h) print_help 0 ;; 47 49 *) print_help 1 ;; … … 60 62 conf_lock_system 61 63 62 if [ -n "${CONF_AUDIT_DELAY_CMD}" ]; then 63 echo "Executing delay command: ${CONF_AUDIT_DELAY_CMD}" 64 ${CONF_AUDIT_DELAY_CMD} 64 if $sleep_mode; then 65 if [ -n "${CONF_AUDIT_SLEEP}" ] && [ ${CONF_AUDIT_SLEEP} -ge 0 ]; then 66 echo "Sleeping ${CONF_AUDIT_SLEEP} seconds..." 67 sleep ${CONF_AUDIT_SLEEP} 68 else 69 echo "Invalid sleep value: ${CONF_AUDIT_SLEEP}" >&2 70 exit 1 71 fi 65 72 fi 66 73 -
trunk/confman.conf.5.in
r385 r403 104 104 client for 105 105 .Cm confsync . 106 .It CONF_SYNC_SLEEP 107 The number of seconds for 108 .Xr confsync 8 109 to sleep when running in sleep mode. 110 .It CONF_AUDIT_SLEEP 111 The number of seconds for 112 .Xr confaudit 8 113 to sleep when running in sleep mode. 106 114 .It CONF_SSH_KEY 107 115 This option is deprecated and will be removed in a future release. See -
trunk/confman.conf.in
r402 r403 73 73 CONF_SSH_KEY="/root/.ssh/id_rsa" 74 74 75 # A command to delay the execution of confsync76 CONF_SYNC_ DELAY_CMD=""75 # confsync sleep (in seconds) 76 CONF_SYNC_SLEEP="" 77 77 78 # A command to delay the execution of confaudit79 CONF_AUDIT_ DELAY_CMD=""78 # confaudit sleep (in seconds) 79 CONF_AUDIT_SLEEP="" 80 80 81 81 # Enable or disable debugging -
trunk/confsync.8
r332 r403 33 33 .Sh SYNOPSIS 34 34 .Nm 35 .Op Fl s 35 36 .Nm 36 37 .Fl h … … 45 46 .Cm confman commit 46 47 operation without the overhead of a working copy. 48 .Pp 49 The 50 .Fl s 51 option will cause 52 .Nm 53 to run in sleep mode. In this mode, 54 .Nm 55 will sleep for CONF_SYNC_SLEEP seconds before executing. This can be used to 56 stagger the execution of 57 .Nm 58 across multiple managed hosts. 47 59 .Pp 48 60 When launched with -
trunk/confsync.in
r402 r403 42 42 } 43 43 44 while getopts "hd" OPT 2>&4 ; do 44 sleep_mode=false 45 while getopts "hsd" OPT 2>&4 ; do 45 46 case $OPT in 46 47 d) DEBUG=true ;; 48 s) sleep_mode=true ;; 47 49 h) print_help 0;; 48 50 *) print_help 1;; … … 61 63 conf_lock_system 62 64 63 if [ -n "${CONF_SYNC_DELAY_CMD}" ]; then 64 echo "Executing delay command: ${CONF_SYNC_DELAY_CMD}" 65 ${CONF_SYNC_DELAY_CMD} 65 if $sleep_mode; then 66 if [ -n "${CONF_SYNC_SLEEP}" ] && [ ${CONF_SYNC_SLEEP} -ge 0 ]; then 67 echo "Sleeping ${CONF_SYNC_SLEEP} seconds..." 68 sleep ${CONF_SYNC_SLEEP} 69 else 70 echo "Invalid sleep value: ${CONF_SYNC_SLEEP}" >&2 71 exit 1 72 fi 66 73 fi 67 74
Note: See TracChangeset
for help on using the changeset viewer.
