3
# Copyright 2010 Canonical Ltd. This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
6
"""Block until the replication cluster synchronizes."""
13
from optparse import OptionParser
15
from canonical.launchpad.scripts import logger_options, db_options
16
from replication.helpers import sync
18
if __name__ == '__main__':
19
parser = OptionParser()
21
"-t", "--timeout", dest="timeout", metavar="SECS", type="int",
22
help="Abort if no sync after SECS seconds.", default=0)
23
logger_options(parser)
25
options, args = parser.parse_args()