'sudo', 'service', 'ntpd', 'start',
run.Raw(';'),
'PATH=/usr/bin:/usr/sbin',
- 'ntpdc', '-p',
+ 'ntpq', '-p',
])
rem.run(args=args)
rem.run(
args=[
'PATH=/usr/bin:/usr/sbin',
- 'ntpdc', '-p',
+ 'ntpq', '-p',
],
)
@contextlib.contextmanager
def check(ctx, config):
"""
- Run ntpdc at the start and the end of the task.
+ Run ntpq at the start and the end of the task.
:param ctx: Context
:param config: Configuration
rem.run(
args=[
'PATH=/usr/bin:/usr/sbin',
- 'ntpdc', '-p',
+ 'ntpq', '-p',
],
)
rem.run(
args=[
'PATH=/usr/bin:/usr/sbin',
- 'ntpdc', '-p',
+ 'ntpq', '-p',
],
)