]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-timesyncd.service.in
Merge pull request #6580 from poettering/nspawn-dm-deviceallow
[thirdparty/systemd.git] / units / systemd-timesyncd.service.in
CommitLineData
a91df40e
KS
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8[Unit]
9Description=Network Time Synchronization
10Documentation=man:systemd-timesyncd.service(8)
11ConditionCapability=CAP_SYS_TIME
4b16233e 12ConditionVirtualization=!container
689d781b 13DefaultDependencies=no
87a85e25 14After=systemd-remount-fs.service systemd-sysusers.service
689d781b 15Before=time-sync.target sysinit.target shutdown.target
ece6e766 16Conflicts=shutdown.target
55152b6e 17Wants=time-sync.target
a91df40e
KS
18
19[Service]
20Type=notify
21Restart=always
22RestartSec=0
87a85e25 23ExecStart=!!@rootlibexecdir@/systemd-timesyncd
0c28d51a 24WatchdogSec=3min
87a85e25
YW
25User=systemd-timesync
26CapabilityBoundingSet=CAP_SYS_TIME
27AmbientCapabilities=CAP_SYS_TIME
a349eb10
LP
28PrivateTmp=yes
29PrivateDevices=yes
c7fb922d 30ProtectSystem=strict
1b8689f9 31ProtectHome=yes
0c28d51a
LP
32ProtectControlGroups=yes
33ProtectKernelTunables=yes
b6c7278c 34ProtectKernelModules=yes
40652ca4 35MemoryDenyWriteExecute=yes
0c28d51a 36RestrictRealtime=yes
3c19d0b4 37RestrictNamespaces=yes
0c28d51a 38RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
6489ccfe 39SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
7f396e5f 40SystemCallArchitectures=native
53d133ea 41StateDirectory=systemd/timesync
a91df40e
KS
42
43[Install]
ece6e766 44WantedBy=sysinit.target