2017-11-18 17:35:03 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
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
|
2017-08-10 09:07:08 +02:00
|
|
|
After=systemd-remount-fs.service systemd-sysusers.service
|
2014-06-17 02:18:33 +02:00
|
|
|
Before=time-sync.target sysinit.target shutdown.target
|
2014-05-20 17:04:11 +02:00
|
|
|
Conflicts=shutdown.target
|
2014-06-06 16:20:33 +02:00
|
|
|
Wants=time-sync.target
|
2014-04-29 08:57:51 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
2017-08-10 09:07:08 +02:00
|
|
|
ExecStart=!!@rootlibexecdir@/systemd-timesyncd
|
2016-08-26 13:23:27 +02:00
|
|
|
WatchdogSec=3min
|
2017-08-10 09:07:08 +02:00
|
|
|
User=systemd-timesync
|
2017-10-06 09:05:20 +02:00
|
|
|
DynamicUser=yes
|
2017-08-10 09:07:08 +02:00
|
|
|
CapabilityBoundingSet=CAP_SYS_TIME
|
|
|
|
AmbientCapabilities=CAP_SYS_TIME
|
2014-05-17 20:33:47 +02:00
|
|
|
PrivateDevices=yes
|
2014-06-04 18:07:55 +02:00
|
|
|
ProtectHome=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
2017-02-09 11:09:50 +01:00
|
|
|
ProtectKernelModules=yes
|
2016-06-08 14:23:37 +02:00
|
|
|
MemoryDenyWriteExecute=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictRealtime=yes
|
2017-02-09 10:28:23 +01:00
|
|
|
RestrictNamespaces=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2017-02-09 11:22:08 +01:00
|
|
|
SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
|
2017-02-08 22:32:37 +01:00
|
|
|
SystemCallArchitectures=native
|
2017-09-14 19:45:40 +02:00
|
|
|
LockPersonality=yes
|
2017-08-30 08:59:57 +02:00
|
|
|
StateDirectory=systemd/timesync
|
2014-04-29 08:57:51 +02:00
|
|
|
|
|
|
|
[Install]
|
2014-05-20 17:04:11 +02:00
|
|
|
WantedBy=sysinit.target
|