Created
October 29, 2018 22:20
-
-
Save jaytaylor/9bc6fd1b814759dcbb23f00ace455086 to your computer and use it in GitHub Desktop.
SystemD service to run NTP client on boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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