That way, if dbomatic dies (or is shutdown), it will update the database appropriately to the current state.
Signed-off-by: Chris Lalancette <[email protected]> --- src/dbomatic/dbomatic | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dbomatic/dbomatic b/src/dbomatic/dbomatic index f81fd0f..7f822e3 100755 --- a/src/dbomatic/dbomatic +++ b/src/dbomatic/dbomatic @@ -270,9 +270,9 @@ begin # incase of dbomatic restarts if File.exists?(EVENT_LOG_POS_FILE) File.open(EVENT_LOG_POS_FILE, 'r') { |f| log_file.pos = f.read.to_i } - # FIXME: we really need to parse from here to the end of the file. - # otherwise we won't get new events until something else causes the - # inotify watch to fire. + logger.info "Replaying old events..." + parse_log_file log_file, parser + logger.info "done" end # Setup inotify watch for condor event log -- 1.7.2.3 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
