]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-time-wait-sync.service.in
travis: turn on nonnull-attribute on Fuzzit
[thirdparty/systemd.git] / units / systemd-time-wait-sync.service.in
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Wait Until Kernel Time Synchronized
12 Documentation=man:systemd-time-wait-sync.service(8)
13
14 # Note that this tool doesn't need CAP_SYS_TIME itself, but it's primary
15 # usecase is to run in conjunction with a local NTP service such as
16 # systemd-timesyncd.service, which is conditioned this way. There might be
17 # niche usecases where running this service independently is desired, but let's
18 # make this all "just work" for the general case, and leave it to local
19 # modifications to make it work in the remaining cases.
20
21 ConditionCapability=CAP_SYS_TIME
22 ConditionVirtualization=!container
23
24 DefaultDependencies=no
25 Before=time-sync.target shutdown.target
26 Wants=time-sync.target
27 Conflicts=shutdown.target
28
29 [Service]
30 Type=oneshot
31 ExecStart=@rootlibexecdir@/systemd-time-wait-sync
32 TimeoutStartSec=infinity
33 RemainAfterExit=yes
34
35 [Install]
36 WantedBy=sysinit.target