Skip to content

Commit

Permalink
BUGFIX: The command is systemctl, not systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
anooprajendra committed Apr 10, 2019
1 parent 2e9327e commit 44183fc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def run(self, host):
self.owner.addOutput(host, f'/sbin/chkconfig ntp on')
self.owner.addOutput(host, 'service ntp stop')
else:
self.owner.addOutput(host, 'systemd enable ntpd')
self.owner.addOutput(host, 'systemd disable chronyd')
self.owner.addOutput(host, 'systemd stop ntpd')
self.owner.addOutput(host, 'systemctl enable ntpd')
self.owner.addOutput(host, 'systemctl disable chronyd')
self.owner.addOutput(host, 'systemctl stop ntpd')

self.owner.addOutput(host, NTP_CRON)

Expand All @@ -130,4 +130,4 @@ def run(self, host):
if self.owner.osversion == '11.x':
self.owner.addOutput(host, 'service ntp start')
else:
self.owner.addOutput(host, 'systemd start ntpd')
self.owner.addOutput(host, 'systemctl start ntpd')

0 comments on commit 44183fc

Please sign in to comment.