mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
162e0b75f9
This reverts commit 48d3e88c18
.
I kept the follow-symlink=false → follow-symlink=true change instact, since
we're likely to have existing installations with a symlink now.
51 lines
1.4 KiB
SYSTEMD
51 lines
1.4 KiB
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# 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
|
|
ConditionVirtualization=!container
|
|
DefaultDependencies=no
|
|
After=systemd-remount-fs.service systemd-sysusers.service
|
|
Before=time-sync.target sysinit.target shutdown.target
|
|
Conflicts=shutdown.target
|
|
Wants=time-sync.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
Restart=always
|
|
RestartSec=0
|
|
ExecStart=!!@rootlibexecdir@/systemd-timesyncd
|
|
WatchdogSec=3min
|
|
User=systemd-timesync
|
|
CapabilityBoundingSet=CAP_SYS_TIME
|
|
AmbientCapabilities=CAP_SYS_TIME
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
ProtectControlGroups=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
MemoryDenyWriteExecute=yes
|
|
RestrictRealtime=yes
|
|
RestrictNamespaces=yes
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
RuntimeDirectory=systemd/timesync
|
|
SystemCallFilter=@system-service @clock
|
|
SystemCallErrorNumber=EPERM
|
|
SystemCallArchitectures=native
|
|
LockPersonality=yes
|
|
StateDirectory=systemd/timesync
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|
|
Alias=dbus-org.freedesktop.timesync1.service
|