1 # SPDX-License-Identifier: LGPL-2.1+
3 # This file is part of systemd.
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.
11 Description=Network Time Synchronization
12 Documentation=man:systemd-timesyncd.service(8)
13 ConditionCapability=CAP_SYS_TIME
14 ConditionVirtualization=!container
15 DefaultDependencies=no
16 After=systemd-remount-fs.service systemd-sysusers.service
17 Before=time-sync.target sysinit.target shutdown.target
18 Conflicts=shutdown.target
19 Wants=time-sync.target
25 ExecStart=!!@rootlibexecdir@/systemd-timesyncd
29 CapabilityBoundingSet=CAP_SYS_TIME
30 AmbientCapabilities=CAP_SYS_TIME
33 ProtectControlGroups=yes
34 ProtectKernelTunables=yes
35 ProtectKernelModules=yes
36 MemoryDenyWriteExecute=yes
38 RestrictNamespaces=yes
39 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
40 RuntimeDirectory=systemd/timesync
41 SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
42 SystemCallArchitectures=native
44 StateDirectory=systemd/timesync
47 WantedBy=sysinit.target
48 Alias=dbus-org.freedesktop.timesync1.service