Run verifytime at boot

This will ensure the system has a more correct, usable time after boot,
which not only improves swupd reliability but other services' as well.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
Tudor Marcu
2017-03-29 11:10:06 -07:00
parent a668c07265
commit c4f8aa2111
2 changed files with 13 additions and 2 deletions
+4 -2
View File
@@ -100,7 +100,8 @@ EXTRA_DIST += \
data/check-update.service \
data/check-update.timer \
data/swupd-update.service \
data/swupd-update.timer
data/swupd-update.timer \
data/verifytime.service
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdunitdir)
@@ -111,7 +112,8 @@ systemdunit_DATA = \
data/check-update.service \
data/check-update.timer \
data/swupd-update.service \
data/swupd-update.timer
data/swupd-update.timer \
data/verifytime.service
distclean-local:
rm -rf aclocal.m4 ar-lib autom4te.cache config.guess config.h.in config.h.in~ config.sub configure depcomp install-sh ltmain.sh m4 Makefile.in missing compile
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Check that system time is sane; update to more correct time if needed
[Service]
Type=oneshot
ExecStart=/usr/bin/verifytime
[Install]
WantedBy=multi-user.target