Skip to content

Instantly share code, notes, and snippets.

@jaytaylor
Created October 29, 2018 22:20
Show Gist options
  • Select an option

  • Save jaytaylor/9bc6fd1b814759dcbb23f00ace455086 to your computer and use it in GitHub Desktop.

Select an option

Save jaytaylor/9bc6fd1b814759dcbb23f00ace455086 to your computer and use it in GitHub Desktop.
SystemD service to run NTP client on boot
[Unit]
Description=NTP sync on boot
Wants=network-online.target
After=network.target network-online.target
[Service]
ExecStart=/sbin/ntpdate time.nist.gov
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment