]>
Commit | Line | Data |
---|---|---|
52ad194e MB |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
60f067b4 JS |
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=Network Time Synchronization | |
12 | Documentation=man:systemd-timesyncd.service(8) | |
13 | ConditionCapability=CAP_SYS_TIME | |
e3bff60a | 14 | ConditionVirtualization=!container |
e842803a | 15 | DefaultDependencies=no |
6e866b33 | 16 | After=systemd-remount-fs.service systemd-sysusers.service |
bb4f798a | 17 | Before=time-set.target sysinit.target shutdown.target |
60f067b4 | 18 | Conflicts=shutdown.target |
bb4f798a | 19 | Wants=time-set.target time-sync.target |
60f067b4 JS |
20 | |
21 | [Service] | |
f5e65279 | 22 | AmbientCapabilities=CAP_SYS_TIME |
6e866b33 MB |
23 | CapabilityBoundingSet=CAP_SYS_TIME |
24 | ExecStart=!!@rootlibexecdir@/systemd-timesyncd | |
25 | LockPersonality=yes | |
26 | MemoryDenyWriteExecute=yes | |
27 | NoNewPrivileges=yes | |
60f067b4 | 28 | PrivateDevices=yes |
6e866b33 | 29 | PrivateTmp=yes |
8a584da2 | 30 | ProtectControlGroups=yes |
6e866b33 | 31 | ProtectHome=yes |
bb4f798a | 32 | ProtectHostname=yes |
81c58355 | 33 | ProtectKernelModules=yes |
6e866b33 MB |
34 | ProtectKernelTunables=yes |
35 | ProtectSystem=strict | |
36 | Restart=always | |
37 | RestartSec=0 | |
8a584da2 | 38 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
6e866b33 MB |
39 | RestrictNamespaces=yes |
40 | RestrictRealtime=yes | |
bb4f798a | 41 | RestrictSUIDSGID=yes |
b012e921 | 42 | RuntimeDirectory=systemd/timesync |
f5e65279 | 43 | StateDirectory=systemd/timesync |
6e866b33 MB |
44 | SystemCallArchitectures=native |
45 | SystemCallErrorNumber=EPERM | |
46 | SystemCallFilter=@system-service @clock | |
47 | Type=notify | |
48 | User=systemd-timesync | |
49 | WatchdogSec=3min | |
60f067b4 JS |
50 | |
51 | [Install] | |
52 | WantedBy=sysinit.target | |
b012e921 | 53 | Alias=dbus-org.freedesktop.timesync1.service |