Skip to content

Commit

Permalink
units: document why systemd-time-wait-sync.service conditions on CAP_…
Browse files Browse the repository at this point in the history
…SYS_TIME (#8555)

As requested by @evverx in #8537 (comment)
  • Loading branch information
poettering authored and evverx committed Mar 22, 2018
1 parent 1147eef commit c5beecc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions units/systemd-time-wait-sync.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@
[Unit]
Description=Wait Until Kernel Time Synchronized
Documentation=man:systemd-time-wait-sync.service(8)

# Note that this tool doesn't need CAP_SYS_TIME itself, but it's primary
# usecase is to run in conjunction with a local NTP service such as
# systemd-timesyncd.service, which is conditioned this way. There might be
# niche usecases where running this service independently is desired, but let's
# make this all "just work" for the general case, and leave it to local
# modifications to make it work in the remaining cases.

ConditionCapability=CAP_SYS_TIME
ConditionVirtualization=!container

DefaultDependencies=no
Before=time-sync.target shutdown.target
Wants=time-sync.target
Expand Down

0 comments on commit c5beecc

Please sign in to comment.