- Timestamp:
- 07/26/2009 16:07:17 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
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
-
branches/confman-1.9
-
branches/confman-1.9/confaudit.8
r351 r404 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 -
branches/confman-1.9/confaudit.in
r400 r404 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 ;; … … 59 61 60 62 conf_lock_system 63 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 72 fi 61 73 62 74 # Set up our "Working Copy" -
branches/confman-1.9/confman.conf.5.in
r385 r404 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 -
branches/confman-1.9/confman.conf.in
r363 r404 73 73 CONF_SSH_KEY="/root/.ssh/id_rsa" 74 74 75 # confsync sleep (in seconds) 76 CONF_SYNC_SLEEP="" 77 78 # confaudit sleep (in seconds) 79 CONF_AUDIT_SLEEP="" 80 75 81 # Enable or disable debugging 76 82 DEBUG="false" -
branches/confman-1.9/confsync.8
r332 r404 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 -
branches/confman-1.9/confsync.in
r400 r404 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;; … … 60 62 61 63 conf_lock_system 64 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 73 fi 62 74 63 75 # Set up our "Working Copy"
Note: See TracChangeset
for help on using the changeset viewer.
