tasks/clock: tolerate ntp daemon

This commit is contained in:
Sage Weil 2011-06-22 14:14:49 -07:00
parent e2e96b31ef
commit 256e6a2bbc

View File

@ -34,11 +34,19 @@ def task(ctx, config):
ctx.cluster.run(
args=[
'sudo',
'service', 'ntp', 'stop',
run.Raw(';'),
'sudo',
'ntpdate',
'clock1.dreamhost.com',
'clock2.dreamhost.com',
'clock3.dreamhost.com',
run.Raw(';'),
'sudo',
'service', 'ntp', 'start',
run.Raw('||'),
'true'
],
)