1# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5description "Run the tlsdate daemon to set the system time" 6author "chromium-os-dev@chromium.org" 7 8start on started system-services 9stop on stopping system-services 10respawn 11 12script 13 GOOGLE_CERTS=/usr/share/chromeos-ca-certificates 14 mkdir -m 755 -p /var/cache/tlsdated 15 # Make sure the timestamp file has the proper permissions. 16 chmod 0644 /var/cache/tlsdated/timestamp || true 17 # When it runs tlsdate, tlsdated stitches together an argument vector for it 18 # as follows: it begins with everything supplied to it after the --, then 19 # appends -H $host -p $port, and maybe -x $proxy if it has a proxy to use. 20 exec tlsdated -v -- /usr/bin/tlsdate -v -C "$GOOGLE_CERTS" -l \ 21 2>&1 | logger -t tlsdate 22end script 23