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
|
2014-05-13 15:39:03 +08:00
|
|
|
After=systemd-networkd.service
|
2014-04-29 14:57:51 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-timesyncd
|
2014-05-18 02:33:47 +08:00
|
|
|
CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
2014-05-18 03:11:00 +08:00
|
|
|
WatchdogSec=1min
|
2014-04-29 14:57:51 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|