Fixed 'clock:' on Centos

ntpdc commands were formerly returning -127 on CentOS

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Warren Usui 2013-03-14 18:06:17 -07:00 committed by Sage Weil
parent fa1faa1f95
commit 4300f42689

View File

@ -45,6 +45,7 @@ def task(ctx, config):
'sudo',
'service', 'ntp', 'start',
run.Raw(';'),
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
@ -58,6 +59,7 @@ def task(ctx, config):
for rem in ctx.cluster.remotes.iterkeys():
rem.run(
args=[
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
@ -70,6 +72,7 @@ def check(ctx, config):
for rem in ctx.cluster.remotes.iterkeys():
rem.run(
args=[
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
@ -83,6 +86,7 @@ def check(ctx, config):
for rem in ctx.cluster.remotes.iterkeys():
rem.run(
args=[
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),