| # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| description "Run the htpdate daemon to set the system time" |
| author "chromium-os-dev@chromium.org" |
| |
| # Starting after all services to let OOBE set initial timezone on first boot. |
| start on started system-services |
| stop on stopping system-services |
| respawn |
| |
| expect daemon |
| exec htpdate -D -u ntp:ntp -m 5 -s -t -r generate_204 -w www.google.com |
| post-stop script |
| rm /var/run/htpdate.pid |
| end script |