Lines Matching defs:log

224 function log {
237 # Also log to stdout if cron job && notice or higher
286 log "info" "Checksum of $1 validated"
289 log "error" "Checksum of $1 is invalid:"
291 log "error" "EXPECTED: $FSHA"
292 log "error" "COMPUTED: $DSHA"
302 log "notice" "File expired on `date -u -d \"Jan 1, 1970 00:00:00 +0000 + $EXPIRES seconds\"`"
311 log "critical" "Missing ntp configuration $NTPCONF"
319 log "error" "$NTPCONF does not specify a leapfile"
326 log "notice" "Requested install to $1, but $NTPCONF specifies $LEAPFILE"
341 log "info" "Attempting download from $LEAPSRC, try $TRY.."
343 if wget $PROTO $PREFER -o ${TMPFILE}.log $LEAPSRC -O $TMPFILE ; then
344 log "info" "Download of $LEAPSRC succeeded"
346 cat ${TMPFILE}.log
353 log "warning" "Downloaded file $TMPFILE rejected -- saved for diagnosis"
354 cat ${TMPFILE}.log
355 rm -f ${TMPFILE}.log
358 rm -f ${TMPFILE}.log
364 log "notice" "$LEAPFILE was missing, creating new copy - check permissions"
379 log "notice" "Installed new $LEAPFILE from $LEAPSRC"
381 log "error" "Install $TMPFILE => $LEAPFILE failed -- saved for diagnosis"
389 log "info" "Attempting restart action: $RESTART"
393 log "notice" "Restart action succeeded"
395 log "info" "$R"
398 log "error" "Restart action failed"
400 log "error" "$R"
415 cat ${TMPFILE}.log
416 log "info" "Waiting $INTERVAL minutes before retrying..."
423 log "warning" "Download from $LEAPSRC failed after $TRY attempts"
424 if [ -f ${TMPFILE}.log ]; then
425 cat ${TMPFILE}.log
426 rm -f ${TMPFILE}.log $TMPFILE
430 log "info" "Not time to replace $LEAPFILE"