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