]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-timesyncd.service.in
hashmap: always set key output argument of internal_hashmap_first_key_and_value()
[thirdparty/systemd.git] / units / systemd-timesyncd.service.in
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
a91df40e
KS
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]
11Description=Network Time Synchronization
12Documentation=man:systemd-timesyncd.service(8)
13ConditionCapability=CAP_SYS_TIME
4b16233e 14ConditionVirtualization=!container
689d781b 15DefaultDependencies=no
89be857a 16After=systemd-remount-fs.service systemd-sysusers.service
689d781b 17Before=time-sync.target sysinit.target shutdown.target
ece6e766 18Conflicts=shutdown.target
55152b6e 19Wants=time-sync.target
a91df40e
KS
20
21[Service]
87a85e25 22AmbientCapabilities=CAP_SYS_TIME
3ca9940c
LP
23CapabilityBoundingSet=CAP_SYS_TIME
24ExecStart=!!@rootlibexecdir@/systemd-timesyncd
25LockPersonality=yes
26MemoryDenyWriteExecute=yes
27NoNewPrivileges=yes
a349eb10 28PrivateDevices=yes
3ca9940c 29PrivateTmp=yes
0c28d51a 30ProtectControlGroups=yes
3ca9940c 31ProtectHome=yes
b6c7278c 32ProtectKernelModules=yes
3ca9940c
LP
33ProtectKernelTunables=yes
34ProtectSystem=strict
35Restart=always
36RestartSec=0
0c28d51a 37RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
3ca9940c
LP
38RestrictNamespaces=yes
39RestrictRealtime=yes
2dd79846 40RuntimeDirectory=systemd/timesync
53d133ea 41StateDirectory=systemd/timesync
3ca9940c
LP
42SystemCallArchitectures=native
43SystemCallErrorNumber=EPERM
44SystemCallFilter=@system-service @clock
45Type=notify
46User=systemd-timesync
47WatchdogSec=3min
a91df40e
KS
48
49[Install]
ece6e766 50WantedBy=sysinit.target
e7dd3947 51Alias=dbus-org.freedesktop.timesync1.service