Skip to content

Commit

Permalink
Merge pull request #653 from deckhouse/ntpd-fix
Browse files Browse the repository at this point in the history
[chrony] fix ntp services list in bashible step
  • Loading branch information
konstantin-axenov committed Jan 25, 2022
2 parents ee4fc95 + 361e121 commit ab8270c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/470-chrony/templates/bashible-step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ spec:
# Chrony module synchronizes the time on all nodes, so systemd-timesyncd system unit isn't used and must be disabled.
for ntp_service in systemd-timesyncd ntp.service ntpd.service; do
if systemctl --no-legend --plain --no-pager | grep -q $ntp_service; then
for ntp_service in systemd-timesyncd.service ntp.service ntpd.service openntpd.service time-sync.target; do
if systemctl --no-legend --plain --no-pager | awk '{print $1}' | grep -q "^${ntp_service}$"; then
systemctl stop $ntp_service
systemctl disable $ntp_service
fi
Expand Down

0 comments on commit ab8270c

Please sign in to comment.