2014-04-29 14:57:51 +08: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-16 02:44:59 +08:00
|
|
|
ConditionVirtualization=!container
|
2014-06-17 08:18:33 +08:00
|
|
|
DefaultDependencies=no
|
2014-05-20 23:04:11 +08:00
|
|
|
RequiresMountsFor=/var/lib/systemd/clock
|
2014-06-13 19:10:30 +08:00
|
|
|
After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.service
|
2014-06-17 08:18:33 +08:00
|
|
|
Before=time-sync.target sysinit.target shutdown.target
|
2014-05-20 23:04:11 +08:00
|
|
|
Conflicts=shutdown.target
|
2014-06-06 22:20:33 +08:00
|
|
|
Wants=time-sync.target
|
2014-04-29 14:57:51 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-timesyncd
|
2016-08-26 19:23:27 +08:00
|
|
|
WatchdogSec=3min
|
2014-05-22 20:31:46 +08:00
|
|
|
CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER
|
2014-05-18 02:33:47 +08:00
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
2014-06-05 00:07:55 +08:00
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
2016-06-08 20:23:37 +08:00
|
|
|
MemoryDenyWriteExecute=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2016-06-11 00:00:12 +08:00
|
|
|
SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io
|
2014-04-29 14:57:51 +08:00
|
|
|
|
|
|
|
[Install]
|
2014-05-20 23:04:11 +08:00
|
|
|
WantedBy=sysinit.target
|