~axwalk/charms/trusty/ceph/trunk

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: james.page at ubuntu
  • Date: 2015-03-30 14:30:08 UTC
  • mfrom: (101.1.3 ceph)
  • Revision ID: james.page@ubuntu.com-20150330143008-0vv81gexexmthgni
Add full kilo support

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
def start():
339
339
    # In case we're being redeployed to the same machines, try
340
340
    # to make sure everything is running as soon as possible.
341
 
    service_restart('ceph-mon-all')
 
341
    if ceph.systemd():
 
342
        service_restart('ceph-mon')
 
343
    else:
 
344
        service_restart('ceph-mon-all')
342
345
    if ceph.is_bootstrapped():
343
346
        ceph.start_osds(get_devices())
344
347