~ahasenack/charms/precise/swift-proxy/use-charm-dir

« back to all changes in this revision

Viewing changes to hooks/swift_hooks.py

  • Committer: Adam Gandelman
  • Date: 2013-04-10 20:34:34 UTC
  • mfrom: (46.1.1 swift-proxy-ha-support)
  • Revision ID: adamg@canonical.com-20130410203434-f75ca2i8w33gvuik
Ensure memcached restart after port config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    ctxt = {'proxy_ip': utils.get_host_ip()}
46
46
    with open(swift.MEMCACHED_CONF, 'w') as conf:
47
47
        conf.write(swift.render_config(swift.MEMCACHED_CONF, ctxt))
 
48
    check_call(['service', 'memcached', 'restart'])
48
49
 
49
50
    # initialize new storage rings.
50
51
    for ring in swift.SWIFT_RINGS.iteritems():