You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
613 B
19 lines
613 B
[Unit]
|
|
Description=Network Time Service
|
|
After=network.target nss-lookup.target
|
|
Conflicts=systemd-timesyncd.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
PrivateTmp=true
|
|
ExecStart=/usr/sbin/ntpd --configfile=/etc/ntp.conf --panicgate --user=ntp:ntp --nofork
|
|
# Specifying -g on the command line allows ntpd to make large adjustments to
|
|
# the clock on boot. However, if Restart=yes is set, a malicious (or broken)
|
|
# server could send the incorrect time, trip the panic threshold, and when
|
|
# ntpd restarts, serve it the incorrect time (which would be accepted).
|
|
Restart=no
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|