Skip to content

Commit 461dea7

Browse files
committed
ref(contrib/coreos): clean up time sync
1 parent 0259313 commit 461dea7

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

contrib/coreos/user-data.example

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,21 @@ coreos:
4141
[Service]
4242
Type=oneshot
4343
ExecStart=/usr/bin/sh -c 'curl -sSL --retry 5 --retry-delay 2 http://deis.io/deisctl/install.sh | sh -s 1.0.2'
44-
- name: ntpd.service
45-
command: start
4644
- name: ntpdate.service
4745
command: start
48-
- name: enable-ntp-synchronization.service
46+
- name: timedate-ntp-synchronization.service
4947
command: start
5048
content: |
5149
[Unit]
5250
Description=Synchronize system clock
53-
Before=ntpd.service
51+
After=ntpdate.service
5452

5553
[Service]
5654
ExecStart=/usr/bin/timedatectl set-timezone UTC
5755
ExecStart=/usr/bin/timedatectl set-ntp true
58-
ExecStart=/sbin/hwclock --systohc
56+
ExecStart=/sbin/hwclock --systohc --utc
5957
RemainAfterExit=yes
6058
Type=oneshot
61-
62-
[Install]
63-
WantedBy=multi-user.target
6459
write_files:
6560
- path: /etc/deis-release
6661
content: |

0 commit comments

Comments
 (0)