Created
May 16, 2017 02:29
-
-
Save mckelvin/e3c6a107dbc67d680e4ee52ce166b679 to your computer and use it in GitHub Desktop.
/Library/LaunchDaemons/local.time-sync.plist (Cron for syncing time every 1200 seconds on macOS)
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>local.time-sync</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>ntpdate</string> | |
<string>-s</string> | |
<string>-u</string> | |
<string>0.cn.pool.ntp.org</string> | |
<string>1.cn.pool.ntp.org</string> | |
<string>2.cn.pool.ntp.org</string> | |
<string>3.cn.pool.ntp.org</string> | |
<string>time.apple.com</string> | |
</array> | |
<key>StartInterval</key> | |
<integer>1200</integer> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment