0f0b1f59c3
- in case libcap is enabled use the now enabled '-u' option to run nptd as user/group ntp Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
16 lines
441 B
SYSTEMD
16 lines
441 B
SYSTEMD
[Unit]
|
|
Description=Network Time Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=/run/ntpd.pid
|
|
# Turn off DNSSEC validation for hostname look-ups, since those need the
|
|
# correct time to work, but we likely won't acquire that without NTP. Let's
|
|
# break this chicken-and-egg cycle here.
|
|
Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
|
|
ExecStart=/usr/sbin/ntpd @NTPD_EXTRA_ARGS@ -g -p /run/ntpd.pid
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|