Lines 2-15
Link Here
|
2 |
Description=Network Time Service |
2 |
Description=Network Time Service |
3 |
After=network.target nss-lookup.target |
3 |
After=network.target nss-lookup.target |
4 |
Conflicts=systemd-timesyncd.service |
4 |
Conflicts=systemd-timesyncd.service |
5 |
|
5 |
|
6 |
[Service] |
6 |
[Service] |
7 |
Type=forking |
7 |
Type=simple |
8 |
PrivateTmp=true |
8 |
PrivateTmp=true |
9 |
EnvironmentFile=-/etc/conf.d/ntp |
9 |
ExecStart=/usr/sbin/ntpd --configfile=/etc/ntp.conf --panicgate --user=ntp:ntp --nofork |
10 |
ExecStart=/usr/sbin/ntpd ${NTPD_OPTS} |
|
|
11 |
# Specifying -g on the command line allows ntpd to make large adjustments to |
10 |
# Specifying -g on the command line allows ntpd to make large adjustments to |
12 |
# the clock on boot. However, if Restart=yes is set, a malicious (or broken) |
11 |
# the clock on boot. However, if Restart=yes is set, a malicious (or broken) |
13 |
# server could send the incorrect time, trip the panic threshold, and when |
12 |
# server could send the incorrect time, trip the panic threshold, and when |
14 |
# ntpd restarts, serve it the incorrect time (which would be accepted). |
13 |
# ntpd restarts, serve it the incorrect time (which would be accepted). |
15 |
Restart=no |
14 |
Restart=no |