diff options
author | Bertrand SIMONNET <bsimonnet@chromium.org> | 2014-02-26 14:41:15 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-02-27 05:38:23 +0000 |
commit | fc78f7e8d4c6acc8ab8bd82fa7d23648838c4009 (patch) | |
tree | ab25be94bc75a396c2db61d29fc663b5215b6de4 /init | |
parent | c8d367010678e1939c1a8fc513df8b299c522d6a (diff) | |
download | tlsdate-fc78f7e8d4c6acc8ab8bd82fa7d23648838c4009.tar.gz |
Add tlsdated.conf to this package
We are moving init scripts out of chromeos-init.
tlsdate's init script will now be installed by tlsdate instead of chromeos-init.
BUG=chromium:347336
TEST=trybot
TEST=built an image without tlsdate and check that tlsdated.conf is no longer
installed
TEST=install chromeos-init and tlsdate on a machine and check that tlsdate is
running and there is no tlsdate related error in /var/log/messages.
CQ-DEPEND=Ib8029ab9642b9b852cbd3e34de5c89b649305309
CQ-DEPEND=Ieaea926653b6baf7f35ce6777c200c8a3698c69a
Change-Id: I0578395a84d5e0a12fdc3dc272985bd28e466a14
Reviewed-on: https://chromium-review.googlesource.com/188123
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/tlsdated.conf | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/init/tlsdated.conf b/init/tlsdated.conf new file mode 100644 index 0000000..f5b46a4 --- /dev/null +++ b/init/tlsdated.conf @@ -0,0 +1,22 @@ +# 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 tlsdate daemon to set the system time" +author "chromium-os-dev@chromium.org" + +start on started system-services +stop on stopping system-services +respawn + +script + GOOGLE_CERTS=/usr/share/chromeos-ca-certificates + mkdir -m 755 -p /var/cache/tlsdated + # Make sure the timestamp file has the proper permissions. + chmod 0644 /var/cache/tlsdated/timestamp || true + # When it runs tlsdate, tlsdated stitches together an argument vector for it + # as follows: it begins with everything supplied to it after the --, then + # appends -H $host -p $port, and maybe -x $proxy if it has a proxy to use. + exec tlsdated -v -- /usr/bin/tlsdate -v -C "$GOOGLE_CERTS" -l \ + 2>&1 | logger -t tlsdate +end script |