2020-11-09 05:23:58 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 17:35:03 +01:00
|
|
|
#
|
2014-04-29 08:57:51 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Network Time Synchronization
|
|
|
|
Documentation=man:systemd-timesyncd.service(8)
|
|
|
|
ConditionCapability=CAP_SYS_TIME
|
2015-03-15 19:44:59 +01:00
|
|
|
ConditionVirtualization=!container
|
2014-06-17 02:18:33 +02:00
|
|
|
DefaultDependencies=no
|
2020-04-08 16:24:23 +02:00
|
|
|
After=systemd-sysusers.service
|
2018-04-30 14:05:29 +02:00
|
|
|
Before=time-set.target sysinit.target shutdown.target
|
2014-05-20 17:04:11 +02:00
|
|
|
Conflicts=shutdown.target
|
2018-04-30 14:05:29 +02:00
|
|
|
Wants=time-set.target time-sync.target
|
2014-04-29 08:57:51 +02:00
|
|
|
|
|
|
|
[Service]
|
2017-08-10 09:07:08 +02:00
|
|
|
AmbientCapabilities=CAP_SYS_TIME
|
2020-09-11 10:56:06 +02:00
|
|
|
BusName=org.freedesktop.timesync1
|
2018-11-12 17:19:48 +01:00
|
|
|
CapabilityBoundingSet=CAP_SYS_TIME
|
|
|
|
ExecStart=!!@rootlibexecdir@/systemd-timesyncd
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2014-05-17 20:33:47 +02:00
|
|
|
PrivateDevices=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
PrivateTmp=yes
|
2020-08-06 14:50:38 +02:00
|
|
|
ProtectProc=invisible
|
2016-08-26 13:23:27 +02:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectHome=yes
|
2019-02-18 23:30:12 +01:00
|
|
|
ProtectHostname=yes
|
2020-08-06 14:50:38 +02:00
|
|
|
ProtectKernelLogs=yes
|
2017-02-09 11:09:50 +01:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=strict
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2018-11-12 17:19:48 +01:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-20 19:52:20 +01:00
|
|
|
RestrictSUIDSGID=yes
|
2018-04-09 20:39:16 +02:00
|
|
|
RuntimeDirectory=systemd/timesync
|
2017-08-30 08:59:57 +02:00
|
|
|
StateDirectory=systemd/timesync
|
2018-11-12 17:19:48 +01:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service @clock
|
|
|
|
Type=notify
|
|
|
|
User=systemd-timesync
|
2019-10-25 12:17:24 +02:00
|
|
|
@SERVICE_WATCHDOG@
|
2014-04-29 08:57:51 +02:00
|
|
|
|
|
|
|
[Install]
|
2014-05-20 17:04:11 +02:00
|
|
|
WantedBy=sysinit.target
|
2018-04-30 16:02:09 +02:00
|
|
|
Alias=dbus-org.freedesktop.timesync1.service
|