2017-11-18 16:35:03 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2014-04-29 06:57:51 +00: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 18:44:59 +00:00
|
|
|
ConditionVirtualization=!container
|
2014-06-17 00:18:33 +00:00
|
|
|
DefaultDependencies=no
|
2018-09-19 07:56:36 +00:00
|
|
|
After=systemd-remount-fs.service systemd-sysusers.service
|
2018-04-30 12:05:29 +00:00
|
|
|
Before=time-set.target sysinit.target shutdown.target
|
2014-05-20 15:04:11 +00:00
|
|
|
Conflicts=shutdown.target
|
2018-04-30 12:05:29 +00:00
|
|
|
Wants=time-set.target time-sync.target
|
2014-04-29 06:57:51 +00:00
|
|
|
|
|
|
|
[Service]
|
2017-08-10 07:07:08 +00:00
|
|
|
AmbientCapabilities=CAP_SYS_TIME
|
2018-11-12 16:19:48 +00:00
|
|
|
CapabilityBoundingSet=CAP_SYS_TIME
|
|
|
|
ExecStart=!!@rootlibexecdir@/systemd-timesyncd
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2014-05-17 18:33:47 +00:00
|
|
|
PrivateDevices=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
PrivateTmp=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectHome=yes
|
2019-02-18 22:30:12 +00:00
|
|
|
ProtectHostname=yes
|
2017-02-09 10:09:50 +00:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectKernelTunables=yes
|
2019-11-14 00:56:23 +00:00
|
|
|
ProtectKernelLogs=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectSystem=strict
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2018-11-12 16:19:48 +00:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-20 18:52:20 +00:00
|
|
|
RestrictSUIDSGID=yes
|
2018-04-09 18:39:16 +00:00
|
|
|
RuntimeDirectory=systemd/timesync
|
2017-08-30 06:59:57 +00:00
|
|
|
StateDirectory=systemd/timesync
|
2018-11-12 16:19:48 +00:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service @clock
|
|
|
|
Type=notify
|
|
|
|
User=systemd-timesync
|
2019-10-25 10:17:24 +00:00
|
|
|
@SERVICE_WATCHDOG@
|
2014-04-29 06:57:51 +00:00
|
|
|
|
|
|
|
[Install]
|
2014-05-20 15:04:11 +00:00
|
|
|
WantedBy=sysinit.target
|
2018-04-30 14:02:09 +00:00
|
|
|
Alias=dbus-org.freedesktop.timesync1.service
|